English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
The Linux 'ls' command (English full spelling: list files) is used to display the contents of the specified working directory (lists the files and subdirectories contained in the current working directory).
ls [-alrtAFR] [name...]
Parameters :
List all directories under the root directory (/):
# ls / bin dev lib media net root srv upload www boot etc lib64 misc opt sbin sys usr home lost+found mnt proc selinux tmp var
List all files in the current working directory that start with s, the newer ones are listed at the end :
ls -ltr s*
To /Detailed list of all directories and files below the bin directory :
ls -lR /bin
List all files and directories in the current working directory;/", executable files should be added "*" :
ls -AF