$ ls
you'll see a list of filenames.
But if you enter:
$ ls -l
there'll be an entire line of information for each file.
The –l option (a dash and a lowercase
letter "L") changes the normal
ls output to a long format.
You can also get information about a particular file by using its name
as the second argument.
For example, to find out about a file called chap1,
enter:
$ ls -l chap1
Many Unix commands have more than one option.
For instance, ls has the
–a (all) option for
listing hidden files.
You can use multiple options in either of these ways:
$ ls -a -l
$ ls -al
You must type one space between the command name and the dash that
introduces the options.
If you enter ls–al, the shell will say
"ls–al: command not found."