Interview Questions

You want to enter a series of commands from the command-line. What would be the quickest way to do this?

Operating System Interview Questions and Answers


(Continued from previous question...)

You want to enter a series of commands from the command-line. What would be the quickest way to do this?

You want to enter a series of commands from the command-line. What would be the quickest way to do this?
Choose One
a. Press enter after entering each command and its arguments
b. Put them in a script and execute the script
c. Separate each command with a semi-colon (;) and press enter after the last command
d. Separate each command with a / and press enter after the last command


c

The semi-colon may be used to tell the shell that you are entering multiple commands that should be executed serially. If these were commands that you would frequently want to run, then a script might be more efficient. However, to run these commands only once, enter the commands directly at the command line.

(Continued on next question...)

Other Interview Questions