You already should be familiar with two of the
commands more useful options:
-l, which displays the listing in long format
-F, which flags directory names with a trailing slash (
This lesson will introduce three more
Directories often contain other directories, which in turn can contain their own subdirectories, and so on down the file hierarchy.
UNIX lets you display a directory tree all at once by using the
ls -R command. The
-R option produces a recursive listing.
ls descends each subdirectory, listing the contents until the bottom of the hierarchy is reached.
recursive listing: A recursive listing of a directory is one that repeatedly displays all subdirectories down the hierarchy, until the last level of the directory tree is reached.
Advanced Options Listing Files
In the next lesson, copying directories by using the
option of the
command will be discussed.