[CentOS 7 Series]linux System file types

Source: Internet
Author: User

The LS command is the most commonly used command under Linux. The LS command is the abbreviation for list. The LS command not only allows you to view the files contained in a Linux folder, but also to view file permissions (including directories, folders, file permissions) to view directory information, and so on.

1. Command format:

ls [options] [directory name]

2. Command function:

Lists all subdirectories and files in the destination directory.

3. Common parameters

Serial number
Command Role Note
1 Ls-l Show more information Ls-l = ll
2 Ls-d Show directory information only
3 Ls-a Show all file information
Hidden files are in the file name with "." The beginning of the file.
4 Ls-i Displays the inode number of the file The inode is a data structure in the UNIX operating system, which is essentially a struct, which contains some important information related to each file in the file system.
5 Ls-h User-friendly display units

6 Ls-t Sort by Time display
7 LS--color Color-coded display
8 LS--help Display Help information
9 LS--version View version information for the LS command

4. Instructions for LL

When using the LS command, we find that the effect of the ls-l and LL commands is consistent. This is the alias effect for the system default settings.

We can also customize various aliases by using the alias command, which makes it easy for you to get used to.

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M01/97/AA/wKiom1kxBLryHw7yAAA-jYMAijc462.png "title=" 1.PNG "alt=" Wkiom1kxblryhw7yaaa-jymaijc462.png "/>


Let's look at the information shown in Ls-l:

650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M01/97/AA/wKioL1kw-lThuePNAAA-jYMAijc144.png-wh_500x0-wm_ 3-wmp_4-s_1029888137.png "title=" 1.PNG "alt=" Wkiol1kw-lthuepnaaa-jymaijc144.png-wh_50 "/>

The first letter of the first column that is displayed represents the file type of the object. In Linux systems, file types are common: ordinary files, directories, character device files, block device files, symbolic link files, and so on.


The specific sorting is as follows:

Serial number Identifier File type Note
1 - Normal file or binary file It is generally created with some related applications, like tools, documentation tools, archive tools .... or CP tools.
2 D Directory
3 L Link file Create a linked file through Ln-s.
4 C Character device files such as the cat and other serial devices.
5 B Block device files such as hard drives, optical drives and other devices.
6 S Socket file for communication.


This article is from the "garbled Age" blog, please be sure to keep this source http://juispan.blog.51cto.com/943137/1931658

[CentOS 7 Series]linux System file types

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.