I am just a novice rookie, for the blog is also the first write, please many magnanimous, welcome everyone to point out the error 650) this.width=650; "src=" Http://img.baidu.com/hi/jx2/j_0057.gif "alt=" j_ 0057.gif "/>.
ls is one of the most commonly used basic commands and the first command that most beginners learn when learning Linux, which is typically used to view files in the current directory or directory.
The specific use of the command is as follows:
Command format:ls[options] ... [Directory Name]
Command function: Displays the current directory or the file under the specified directory.
Command parameters:(due to the "LS" command options too many parameters, the following only a few common commands, about the detailed use of the "man ls" command to get help)
-
ls-a: Show All Files (including hidden files) Note: Hidden files are "." The file that is prefixed.
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/83/FD/wKiom1eDCyCwepniAAAXEzvO7Rw238.png "title=" ls.png "alt=" Wkiom1edcycwepniaaaxezvo7rw238.png "/>
-
ls-d: Displays the current or specified directory itself without displaying the files or directories it contains. Note: "." Represents the current directory
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M02/83/FC/wKioL1eDCwuhtZKeAAAIjARKpiM572.png "title=" Ls-d.png "alt=" Wkiol1edcwuhtzkeaaaijarkpim572.png "/>
-
ls-h: displays the size of the current directory or the specified (directory/file) and the automatic conversion units are presented in a humane manner, which is generally not used alone but is combined with the-l command, such as:
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/83/FD/wKiom1eDDfCQgHucAAAV0exmGWo154.png "title=" Ls-l.png "alt=" Wkiom1eddfcqghucaaav0exmgwo154.png "/>
-
ls-i: Displays the index node number of the file.
650) this.width=650; "src=" http://s5.51cto.com/wyfs02/M01/83/FE/wKiom1eDEGGQS_j9AAAexdJnydY047.png "title=" LS- I.png "alt=" Wkiom1edeggqs_j9aaaexdjnydy047.png "/>
-
Ls-r: Reverse Displays the current directory or the file under the specified directory. Note : Please note the sorting of the catalog display
650) this.width=650; "src=" http://s4.51cto.com/wyfs02/M01/83/FE/wKiom1eDEcCAwBERAAAj3vrsggU542.png "title=" LS- R.png "alt=" Wkiom1edeccawberaaaj3vrsggu542.png "/>
-
Ls-r: recursively displays the current directory or the file under the specified directory. Note: This command should be used with caution in the work, such as viewing the specified directory subdirectory and too many files will increase the consumption of system resources.
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/83/FD/wKioL1eDFieSuIdzAAA-Jc9yhMM280.png "title=" ls- R.png "alt=" Wkiol1edfiesuidzaaa-jc9yhmm280.png "/>
The above are common options for the ls command, and the ls command can also be combined, the following is an example of common combinations of the ls command:
Example 1: Ls-alh etc/: Displays all files in the ETC directory in a rich format and converts the file size.
650) this.width=650; "src=" http://s2.51cto.com/wyfs02/M00/83/FF/wKioL1eDLrHRb2JQAABRyryG81k889.png "title=" LS- Alh.png "alt=" Wkiol1edlrhrb2jqaabryryg81k889.png "/>
Example 2:ls-alir etc/: Displays all files in the ETC directory in a rich format and displays the index number in reverse order by file name:
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/84/00/wKiom1eDMkDBpEIIAABxCXsHj7k406.png "title=" Ls-alir.png "alt=" Wkiom1edmkdbpeiiaabxcxshj7k406.png "/>
The above is the common use of the LS command format, other combinations use the format please do their own exploration.
Linux basic Command LS Chapter