Home » LPI » 117-201 » 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?
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.
Correct Answer: C
Explanation/Reference:
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 (/).
Download Printable PDF. VALID exam to help you PASS.
|
|