Continuing a command onto another line

To continue a command onto another line enter a '\\' (backspace) character and then press <Return>. You can then continue entering the command. For example:

   rcp ubik:/home/roger/recipe.ps .;\\<Return>
   lpr -Pps3 #6m recipe.ps

This copies the file recipe.ps from the home directory of the user roger on the remote host ubik to the users current directory. It then sends this job to the printer ps3 with the request that 6 copies are printed.

This person ought to use a photocopier!

If you are using the Bourne, BASH or Korn shell a > character appears as a prompt at the start of the second command line. For example:

   ls -l | grep '^d.........x' > dirs;\\
   > less dirs

Users of the C or Tcsh shell do not receive this prompt.


[Home] [Search] [Index] This site maintained by appl@mcsr.olemiss.edu