LS: Displays the contents of the current directory
-A: Displays all files, including "." Start of hidden files
-A: Display except "." and ".." All files except the
-L: Show details of a file or directory
-I: Displays the index number of the file
-D: Displays the properties of the directory, usually in combination with-l
-H: When the file or directory size is displayed, the unit is converted, and the default is bytes. Usually used in conjunction with-l
such as: Show All files in the root directory
[Email protected]/]# ls-a
. .. ABC. autofsck BBB bin boot b.txt cgroup data dev etc home lib Linshi lost+found Media misc mnt Net opt Proc root sbin selinux srv sys test.txt tmp usr var zwj.txt
Display the size of files and directories
[Email protected] backup]# LS-LH
Total 8.0K
-rw-r--r--. 1 root root 625 Mar 21:35 bbs-2017-03-12.sql.tar.gz
Drwxr-xr-x. 3 root root 4.0K Mar 3 13:58 HTML
This article from "10,000 years too long, seize" blog, please be sure to keep this source http://zengwj1949.blog.51cto.com/10747365/1905765
The Linux command ls