[index] [text page] [<<start] [<prev] [next>] [last>>]
Page 27: The Semicolon

Page 27

  
  The Semicolon
  Want to run more than one command on a single line?  Use the semicolon between them.
     $ pwd
     /tmp
     $ pwd ; cd ~ ; echo "Success!" ; pwd
     /tmp
     Success!
     /home/reegen
     $ pwd
     /home/reegen
  Why might you want to do that?
  Do lots of commands via history
  Loops / scripts / etc

Copyright 2005, Bri Hatch of Onsight, Inc.

Presented at LFNW - LinuxFest Northwest, Bellingham, Washington, Apr 2005

Presentation created using vim and MagicPoint.