The parameter function of some commands

Source: Internet
Author: User

The man document sometimes does not understand very much, here is to record some of the parameters of the command function, in case of query.

LS [-aadffhilnrrst]

Ls[--color={never,auto,always}]

Ls[--full-time]

-A: All files, together with hidden files (beginning with. files) are listed together ( common )

-A: Lists all the files, (along with hidden files, but not included. And.. These two directories

-D: Lists only the directory itself, not the file data in the directory ( common )

-F: List results directly without sorting (LS is sorted by file name by default)

-F: Provides additional data structures based on information such as files, directories, etc.: * represents executable files; /: Representative directory;  =: Represents the socket file; |: Represents a FIFO file

-H: Lists the file capacity in a human-readable way (for example, GB, KB, etc.)

-I: List inode numbers

-L: Lists Long data strings, including data such as properties and permissions for files ( commonly used )

-N: Lists the UID and GID, not the name of the user and user group

-r: Reverse output of the sort results, for example: the original file name is small to large, the reverse is from large to small

-R: Listed along with subdirectory content, all files in that directory will be displayed

-S: Sort by file size, not by filename

-T: Sort by time, not by file name

--color=never: Do not give color display based on file characteristics

--color=always: Display Color

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

--full-time: Output in full time mode (including year, month, day, hour, minute, second)

--time={atime,ctime}: Output access time or Change permission attribute time (CTime) instead of content change time (modification times)

PWD [-P]

-P: Displays the current path, not the link path used

mkdir [-MP]

-M: Configure permissions for the directory. Direct settings, no need to see Default permissions (Umask)

-P: Create the desired directory recursively.

rmdir [-P]

-P: Along with the upper "empty" directory also deleted

The parameter function of some commands

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.