The semicolon ( ; ), or command seperator, allows you to enter multiple commands on a single command line and execute them all at once.

Command Format

command; command

Examples

This example executes the cd command and then immediately executes the ls command:

$ cd; ls
Franklin Pig_Pen Snoopy Woodstock blankets blankets_6 chuck chuck_1 game genius marcy mud.puddles
sally
$

This example executes the date command, then the cal command and finally the who command:

$ date; cal; who
Fri Oct 29 10:29:10 PST 1999
Oct 1999

S
M Tu W Th F S
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31            

chuck console Oct 18               02:20
$