ls command is used to list out all the files and directories in present working directory.
-for suppose if we want to display all the files including hidden files & directories
$ls -a
-to display all the files and directories with the sub directories and files
$ls -R (it includes hidden files also)
-to display the list with size
$ls -s
-to display the list with the information when it is created, who is the owner and its permissions.
Note: most of the time we use $ls -lrt, it will list out according to the time stamp with all necessary information.
-for suppose if we want to display all the files including hidden files & directories
$ls -a
-to display all the files and directories with the sub directories and files
$ls -R (it includes hidden files also)
-to display the list with size
$ls -s
-to display the list with the information when it is created, who is the owner and its permissions.
Note: most of the time we use $ls -lrt, it will list out according to the time stamp with all necessary information.