Linux command-ls

Source: Internet
Author: User

Ls:list Directory Contents List Contents

LS option:

-a:do not ignore entries starting with. : does not ignore the file containing the start. (Hidden file)

-a:do not list implied.  and.. : List does not contain. and. file, but it will contain additional files that begin with the.

-l:use a long listing format: Use a long list of tables to output detailed information

-i:print the index number of each file: Print the index of each document

-d:list directory entries instead of contents, and do not dereference symbolic links displays current directory information, does not refer to symbolic links, usually with-l

-h:with-l, print sizes in human readable format (e.g., 1K 234M 2G): Printing size in a human-readable way

-s:print the allocated size of every file, in blocks: Files stored on the hard disk are allocated disk space storage as disk blocks, using-s to see how many disk blocks the file is allocated

-s:sort by file Size: Sorting file sizes

Linux command-ls

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.