CENTOS7 under command note-ls

Source: Internet
Author: User

The LS command is probably one of the most commonly used commands under Linux, and LS is the abbreviation for list. Because there is too much information on a Linux directory or file record, the default LS displays only non-hidden directories and filenames. LS Displays the file name in this directory directly when no parameters are added.

The LS command format is:

ls [-aadffhilnrrst] directory name

Options and Parameters:

-A: All files, including hidden files, are displayed together

-A: All files, including hidden files, but not displayed. And.. These two directories

-D: Lists only the directory itself, not the archive data in the directory

-F: Direct output, no sorting (LS presets are sorted by file name)

-F: According to the file information, give additional data structure, for example: * Represents the executable file/representative directory = Socket File | represents FIFO file

-H: File capacity displayed in a human-understandable way (e.g. GB, KB, etc.)

-I: List inode numbers

-L: Long data output with more complete file information

-N: Lists UID and GID instead of user and group names

-r: Reverse sequence output of the result

-R: Listed together with subdirectory contents

-S: Sort by file size, not by file name

-T: Sort by time, not by file name

--color=never: does not give color display according to the file characteristic

--color=always: Always give color display according to file characteristics

--color=auto: Let the system decide whether to give the color according to the setting

--full-time: Displayed in full time mode (including month and day)

--time={atime,ctime}: Output access time or Change permission attribute time (CTime), not content change time (mtime)

CENTOS7 under command note-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.