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:

   lp -d lp2 -n4 -m report.ps

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

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

   lp -d lp2n4m report.ps

the command would try to find a printer with the name lp2n4m.


[Home] [Search] [Index] This site maintained by unixhelp@mathcs.duq.edu