» Linux » Examen sur Linux » Examen 201 : Advanced Administration » Section 3 » Question 16/20
16.You want to enter a series of commands from the command line. What would be the quickest way to do this?

Press enter after entering each command and its arguments.
Put them in a script and execute the script.
Separate each command with a semi-colon (;) and press enter after the last command.
Separate each command with a / and press enter after the last command.

Explanation: You can enter multiple commands on one line by separating them with a semi-colon (;). Pressing enter after the last command will run the commands.

Reference: http://unix.about.com/library/tips/bltip016.htm

Incorrect Answers
A: Pressing enter after a command will run the command before you can enter another command.
B: A script listing the commands would work but this isn't the quickest way of doing it.
D: You need to use semi-colons (;) to separate the commands, not forward slashes (/).

« Question 15 Question 17 »