Linux ls Command Simply Explained

Linux ls Command Simply Explained

The ls command has multiple options for displaying attributes on files. The most common and useful are – l (long listing format), -a (all files, includes hidden files), and –R (recursive, to include the contents of all sub-directories).

ls -l Example

ls -l Example


ls -a Example

ls -a Example


ls -a Example 2


The two special directories at the top of the listing refer to the current directory (.) and the parent directory (..) These special directories exist in every directory on the system. Their usefulness will become apparent with the file management commands.

ls -R Example

ls -R Example


For More Details see the Man Page


Tech info

Comments