C++ CSS HTML Java JavaScript MySQL Oracle PERL PHP SQL Unix VBScript XHTML XML Сети
Using Multiple Commands
 

13.13. Using Multiple Commands

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/

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.

Главная