Linux ls Common command detailed

Source: Internet
Author: User


Usage: LS [option] ... [File] ...

Lists information about the file (default is the current directory).

If you do not specify the-cftuvsux or--sort option, sort by letter size.


The long option must use parameters that are also required for short options.

-A, --all display. Or. The Hidden file

Such as:

#ls-A

. A.out Love.txt



-D, --directory lists the directory itself instead of files within the directory when the directory is encountered


-H, --human-readable with-l output file size in an easy-to-read format

(e.g. 1K 234M 2G)

Such as:

# LS-LH

Total dosage 232K

-rw-r--r--. 1 root root 152 July 9 00:51 10.c

-rw-r--r--. 1 root root 83 July 9 00:55 11.c

-rw-r--r--. 1 root root 171 July 9 01:00 12.c

-rw-r--r--. 1 root root 157 July 9 01:16 13.c

-rw-r--r--. 1 root root 215 July 9 01:25 14.c

-rw-r--r--. 1 root root 288 July 9 01:36 15.c

-rw-r--r--. 1 root root 140 July 9 03:09 16.c

-rw-r--r--. 1 root root 116 August 9 15:29 17.c

-rw-r--r--. 1 root root 196 August 9 15:45 18.c

-rw-r--r--. 1 root root 143 July 8 22:46 1.c

-rw-r--r--. 1 root root 319 August 10:54 1.txt

-rw-r--r--. 1 root root 143 July 8 22:51 2.c

-rw-r--r--. 1 root root 148 July 8 23:11 3.c

I wonder if you have anything to add to the great God, thank you.








This article from the "7439787" blog, reproduced please contact the author!

Linux ls Common command detailed

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.