Learn Linux under Cal,ls

Source: Internet
Author: User

Cal through man to see calendar commands

Cal-l View Current month calendar (default)

Cal-3 viewing the previous three month calendar


Ls:linux Displays the Directory member command:

Format: ls [OPTION] ... [FILE] ...


-A: Show All files, hidden files containing.

-A: Displays all files, unlike a, which is not displayed. (indicates the current directory),.. (current command previous level directory)

--author with-l multi-display one column owner

Example: [[email protected] tmp]$ ls-l
Otal 80
-rw-rw-r--. 1 Suhao Suhao 0 05:43 admintest
-rw-r--r--. 1 CentOS admin 0 05:48 CentOS

[Email protected] tmp]$ ls-l--author
Total 80
-rw-rw-r--. 1 Suhao suhao Suhao 0 05:43 admintest
-rw-r--r--. 1 CentOS admin CentOS 0 05:48 CentOS


-B: Do not list files ending in ~ (Files edited with Vim are backed up, ending with a ~.) Add set nobackup in VIMRC)

--color =[when]

Never suppress the color highlighting feature

Always turn on the color highlighting function

Auto turn on the color highlighting function, generally choose this option, but it is different from always the author has not clearly resolved, the experiment is not different

-D Displays the directory name instead of displaying the content information in the directory below

-F do not arrange no color display

-F Each file is followed by an identifier representing its file category, @ for symbolic links,/for directories, = for sockets, | for pipe files

-g similar to ls-l, but only displays its genus group information

-L Show more information

-L is similar to-l, but the display file displays the link itself instead of the link, if there is a link file

-s,--size display of block blocks occupied by files

-S arranged by file size

-R recursive display of all files


The above for the author's notes, if there are mistakes, please enlighten me, thank you




























Learn Linux under Cal,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.