We all know that the ls command is mainly used to display the contents of the current directory. It is a commonly used command under Linux. Today, Xiaobian mainly introduces you to the Linux ls command instance, I hope to help you.
What is ls
The ls command is used to list files and directories. By default, he will list the contents of the current directory. With the parameters, we can do more with ls (see the system home ls command in Linux operation?). Here are some examples of ls usage used in everyday operations.
1. run with no arguments ls
run ls with no arguments will list only the file or directory. I can't see other information output. (Annotation: Sometimes you find that the ls command with no parameters is different from the one described here, it may be that your ls command actually has the ls alias with parameters).
$ ls
2. Use a long list mode
Use the -l characters (lowercase L character), will show a long list of the contents of the current directory. In the next example, we will combine the -l parameter (this parameter is often used) to get better results.
$ ls -l
Previous1234567Next page Total 7 pages
In order to avoid excessive use of disk space by the administrator, the administrat
rvm as a command-line tool, can provide a lot of convenience, is an inaccessible to
ln is an important command in the Linux system. It can establish links for files an
We all know that Linux can delete users and groups by using the userdel command, but sometimes it wi
How to configure XFS file system for Linux system
How Linux can improve the copying efficiency of large files
What should I do if the GRUB boot error occurs when CentOS is booting?
How to use ext3grep to recover files on Linux
How Linux can modify the TCP port range
How to use the assert function under linux system?
openSUSE upgrade to version 13.2 of the method
How to deal with the unresponsive situation of the su command in Linux
Linux does not extract compressed files, how to directly view a file size
Under the CentOS pure-ftpd server error 530 login authentication how to do?
Turn off Windows 7 Edge Auto-Maximization Method
Teach you to modify the Windows 8 system to safely remove the USB device and turn off the USB power
What is the file format of fdf? How to open the .fdf file?
Win7 volume control icon turns gray solution
How to open the guest account to activate the guest user method under win7
How to install audio equipment in win7 system
Vista enables system restore to automatically create restore points
Analysis of 2003 fast automatic login shortcuts
How to set up win10 Notepad automatically wrap? Win10 Notepad set the method of automatic line break