Home » LPI » 117-201 » Which of the following key combinations would achieve this?
You are entering a long, complex command line and you reach the right side of your screen before you have finished typing. You want to finish typing the necessary commands but have the display wrap around to the left. Which of the following key combinations would achieve this?
A. Esc, /, Enter
B. , Enter
C. ctrl-d, enter
D. esc, /, ctrl-d
Correct Answer: B
Explanation/Reference:
Explanation: There is a way to enter a long command such that it will be broken at the end of the top line and continued on the next. This can be accomplished by typing a backslash () character before pressing enter at the breakpoint, as follows:
$ echo This is a long command so why not break it here
> and start on the next line. <enter> which gives as output:
This is a long command so why not break it here and start on the next line.
The > is the shell’s way of letting the user know that the current line is a continuation of the previous line.
Reference: http://pneuma.phys.ualberta.ca/~gingrich/research/shells/node13.html
Incorrect Answers
A:This key combination will not wrap the text.
C:This key combination will not wrap the text.
D:This key combination will not wrap the text.
Download Printable PDF. VALID exam to help you PASS.
|
|
B should be: b. /, Enter