MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

UNIX

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which command is used for making the scripts interactive?
A
ip
B
input
C
read
D
write
Explanation: 

Detailed explanation-1: -Explanation: read command is the shell’s internal tool for taking input from the user i.e. it makes the scripts interactive.

Detailed explanation-2: -An interactive script is a script that requires input from the user. Interactive scripts couldn’t run in the background as they required input from the user. For an interactive shell, the prompt variable necessarily is set to ($PS1). For example, a bash shell is an interactive shell.

Detailed explanation-3: -Use the bash command to execute a shell script. Use chmod to make a script an executable program.

Detailed explanation-4: -Explanation: script command is basically used for recording our login session in a file.

Detailed explanation-5: -You run the shell script (pure. bat on Windows and pure on Linux®) from the pure. cli/bin directory on your local computer. In this procedure you start in interactive mode, specifying the host name or IP address for the system, along with an authorized user ID and password to start a user session.

There is 1 question to complete.