Running Separate Commands in Sequence

If you want to have a set of commands run in order, but not use the output from one as the input to the next one, you can. Separating commands with a ; (semicolon) will cause the system to treat each item as if it was entered on a new line after the previous item finished running. Let’s say you have three commands called doctor, rose, and tardis. You could run each in order using this command:

matthew@seymour:~$ doctor ; rose ; tardis

Note that the spaces before and after the semicolon are optional, but they do make the line easier to read.

Get Ubuntu Unleashed 2014 Edition: Covering 13.10 and 14.04,Ninth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.