Linux ls command + file type +alias command

Source: Internet
Author: User

ls command

#ls-L Display details #ls-i displays the inode number #ls-a displays all Files + directories, including hidden #ls-t sorted in chronological order (the first one is the one you just edited) #ls-H at-l when the user-friendly display file size, For example, automatically use the appropriate KB,MB,GB such as #ls-d directory to display only directories in a directory


File type

650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M01/97/B1/wKioL1kxIw2B-qIaAAFiW5lVT3k401.png "title=" 2d.png "alt=" Wkiol1kxiw2b-qiaaafiw5lvt3k401.png "/>

The first line like this shows the D rwxr-xr-x CRW-------

One of the first letters:

    • d    directory       directory

    • c     character   string device

    • b      block   block devices     Optical drives, discs, disks, etc.

    • l       link   Soft link file

Alias command

Run a command if you don't know what the real command is, you can use #which to query

#which ls

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M02/97/AF/wKiom1kxIyWSZX9kAAAIjam-eEQ101.png "title=" 3d.png "alt=" Wkiom1kxiywszx9kaaaijam-eeq101.png "/>

#alias See what aliases are in the system

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M01/97/AF/wKiom1kxIzWBrARtAAAhKKxcOSw978.png "title=" 4d.png "alt=" Wkiom1kxizwbrartaaahkkxcosw978.png "/>

Make an alias

#alias zh= "Ls-lha" to make an alias Zh=ls-lha

Cancel an alias

#unalias zh= "Ls-lha" to cancel an alias Zh=ls-lha

This article is from the "Old seven Linux Operations Management" blog, please be sure to keep this source http://asd9577.blog.51cto.com/4291946/1931753

Linux ls command + file type +alias command

Related Article

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.