Common functions of Redhat,centos Linux Common command ls

Source: Internet
Author: User
Tags parent directory

①ls default display of files in the current directory

Displays the current directory in which to use the command PWD (printing working directory)

So LS and ls/root show the same effect.

②ls–l displaying full information about a file

File type of Linux: Introduction

-: Normal file

D: Catalog file

B: Block device files (blocks)

C: Character device file (character)

L: Symbolic Connection files (symbolic link file)

P: Command pipe file (pipe)

S: Socket file (socket)

File permissions: A total of 9 bits per 3 bits a group of rwx (read, Write, execute,-indicates no one of the three permissions)

-H Unit conversion (convert the size of the file to a unit that is easy for adults to intuitively understand)

Timestamp time stamp

Access: time when the file was last accessed

Modify: The time the file was recently taken from the edge

Change: The time that the file attribute was changed is the time the metadata was modified metadata

③–a Show hidden files that begin with.

. Represents the current directory

.. Represents the parent directory of the current directory

-A shows hidden files that start with. But not included. And..

-D Displays the directory's own properties Ls–l–d/root

-I display the index node number (number) of the file the computer is easily recognizable

-r: Displaying files in reverse alphabetical order of file names

-R: Recursive display of files

Common functions of Redhat,centos Linux Common command ls

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.