Examples of using multiple options

Options can be grouped together:

   ls -FI

This lists the contents of the current directory. Directories are shown with a trailing '/'; files which have execute permission are shown with a trailing '*'.

The inode number of each file is also displayed.


Some options need to be given separately:

   lpr -Plp2 -#4rm report.ps

This prints four copies of the file report.ps, removes the file and sends mail to the user on completion.

The option -Plp2 which specifies the printer to be used is given separately from the other options. If the command were given as

   lpr -Plp2#4rm report.ps

the command would try to find a printer with the name lpr2#4rm.


[Home] [Search] [Index] This site maintained by system@gantep.edu.tr