|
ls
[directory]
|
|
|
The
ls command lists the files and subdirectories in the directory
you specify. If not directory is specified, a list of the files
and subdirectories in the current working directory is displayed.
|
|
|
Usage:
The ls command will display all files in the current working directory
- simply type "ls" and hit return. You can also add
some additional arguments to customize the list display.
|
|
|
If
you type "ls -F" it will append a forward slash to the
subdirectory names so you can easily distinguish them from file
names.
|
|
|
If
you type "ls -a" it will show all "hidden files".
Hidden files begin with a ".", i.e. ".htaccess"
files.
|
|
|
If
you type "ls -l" it will show detailed information about
each file and directory, including permissions, ownership, file
size, and when the file was last modified.
|
|
|
You
can mix the arguments, i.e. if you type "ls -aF" you
will see a list of all file names (including hidden files and
a forward slash will be appended to directory names.
|