Linux Basics

50 / 107

List of files

To see the list of files and directories, we use the ls command. It's syntax is:

ls file_name

where, file_name can contain zero or multiple files or directories. If no file_name is specified, then it just returns all the files and directories in the current directory.

Generally used options with ls command are:

  1. -l : It will show the result in a long listing format. It displays all the information about a file or a directory.

  2. -a : It will display all files including the hidden files.

  3. -t : It sorts the list by modification time, showing the last modified file first.


No hints are availble for this assesment

Answer is not availble for this assesment

Loading comments...