When I 1st time using Linux OS, the 1st command I use is ‘ls’ ;p Why I want use ‘ls’? Of cause want to listing the files and directories in the filesystem ;D
Using the command is easy:
this will list out all the files and directories, but this wouldn’t display the hidden files/directories ( those file start with ‘.’ will be hidden in Linux OS). To display the hidden files/diretories following command can be use:
all this option would not display detail of files and directories listed. To display more details about the files/directories (like size, date modify, permission and etc…):
will display the file and diretory detail but not listing the hidden files/diretories. So :
will show the all the file and directory (including the hidden files/directories). You may question why don’t use ‘ll’, and ‘ll’ will perform same function as ‘ls -al’. Actually ‘ll’ is just a alias of ‘ls -al’.
May be in some Linux distro, the ‘ls’ will not list the files and directories in different colours. Then you will need to use this option ‘–color=auto’: