Cheap domain hosting, cheap domain names & web page promotion services
  

 Home

Red Hat Linux 9: Red Hat Linux Getting Started Guide
PrevChapter 13. Shell Prompt BasicsNext

13.13. Using Multiple Commands

Linux allows you to enter multiple commands at one time. The only requirement is that you separate the commands with a semicolon.

Suppose you have downloaded a new file called foobar-1.3-2.i386.rpm, and you want to put it in a new subdirectory within your home directory called rpms/, but the subdirectory has not been created. You can combine both the creation of the rpms/ directory and the moving of your downloaded file into the directory by typing the following at a shell prompt:

mkdir rpms/; mv foobar-1.3-2.i386.rpm rpms/

Running the combination of commands creates the directory and moves the file in one line.


PrevHomeNext
Command History and Tab CompletionUpOwnership and Permissions
 

 

 

 
 

Disclaimer: For authoritative source or latest update to this documentation, please refer to http://www.redhat.com/docs/manuals/linux/

 

 
Quotes: The thing always happens that you really believe in; and the belief in a thing makes it happen.