» Linux » Examen sur Linux » Examen 201 : Advanced Administration » Section 4 » Question 12/20
12.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?

Esc, /, Enter
\, Enter
ctrl-d, enter
esc, /, ctrl-d

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.

« Question 11 Question 13 »