OnWorks Linux and Windows Online WorkStations

Logo

Free Hosting Online for WorkStations

< Previous | Contents | Next >

Long Option Names

Many of the commands we have studied feature both short and long option names. For instance, the ls command has many options that can be expressed in either short or long form. For example:



[me@linuxbox ~]$ ls -ad

[me@linuxbox ~]$ ls -ad


and:



[me@linuxbox ~]$ ls --all --directory

[me@linuxbox ~]$ ls --all --directory


are equivalent commands. In the interests of reduced typing, short options are preferred when entering options on the command line, but when writing scripts, long options can provide improved readability.


Top OS Cloud Computing at OnWorks: