1, Function : List The contents of the directory;
2. Format : LS [options] [file]
[option] To specify that you want to view the file-related content, if the file is not specified by default view all files in the current directory;
3. Common parameters :
4, use example :
[[email protected]/]$ ls–l (can be shortened to LL)
Total 220
Drwxr-xr-x 2 root root 4096 Mar 2005 bin
Drwxr-xr-x 3 root root 4096 APR 3 2005 Boot
-rw-r--r--1 root root 0 APR 2002 Test.run
...
This instance looks at all the files in the current directory and displays the details through the option "-L".
The display format description is as follows: File type and permissions (hard) Link number file is the primary file of the group file size modified time name.
If you want to show all the "." The beginning of the file, you can use-a, which is commonly used in embedded development.
Attention:
Executable files in Linux are not identified by file extensions like Windows, but are implemented by setting the corresponding executable properties of the file.
Linux commands (2): ls command