Examples of using multiple options

1. 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.

2. 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 use is given serperately 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.


Top document