"Linux Summary" file types and Common commands

Source: Internet
Author: User
Tags parent directory

File types in Linux:

    • -: Normal file (f)

    • D: Catalog file

    • B: Block device files (blocks)

    • C: Character device file (character)

    • L: Symbolic Link files (soft link files) (Symbolic link file)

    • P: Command pipe file (pipe)

    • S: Socket file (socket)

-rw-r--r--1 root root 23:11 upstart-xsessions

-rw-r--r--1 root root 1018 Oct 5 usb_modeswitch.conf

-rw-r--r--: File permissions: 9-bit, each three-bit group, each group: rwx (Read, write, execute)

1: Number of hard links to files

Root: The owner of the file

Root: The genus (group) of the file

270: File size (size), Unit is byte

Feb 29 23:11: Timestamp (timestamp): Last Modified Time

Upstart-xsessions: File name

Because the file size is in bytes

-H: Do unit conversion k

-A: Show hidden files starting with.

.: Indicates the current directory

.. : Represents the parent directory of the current directory

-A: Displays except. and. Hidden files outside of

-D: Displays the properties of the directory itself

-i:index Index of Node,inode files

Linux defaults with file names being sorted

-r: File name inverted sort

-R: Recursive (Recursive) display

Cd:change Directory Switch Files directory

CDS: Home directories, home directories, home directory

CD ~usernam: Enter the home directory of the specified user

CD-: Return to previous directory

"Linux Summary" file types and Common 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.