Linux Basic 4 Common commands

Source: Internet
Author: User

Ls:list

-L: Long format

-A: Show All Files

-A: Shows all files including. and..

-D: Show directory

-H: for human Reading

-R: Reverse Display

-R: Recursive display

-I: Displays the inode of the file (the index node number of the file)


Ls-l Display Content Description:

1. First column: File type

-: Normal file

D: Catalog Files directory

B: Block device file

C: Character device character

L: Link File symbolic link

P: Piping Equipment pipe

S: Socket file socket

2, file permissions: Nine bits, each three bits for a group, respectively, is owner, group, other three group, and three bits are rwx respectively.

3, the number of hard links to the file.

4. Owner of the document

5. Group of documents

6. File Size (bytes)

7. Last modified time of file (Mtime). A timestamp of a total of three timestamps (timestamp):

Access time;

Modify time file modified;

Change time Meta data (metadate)

8. File name



Cd:change Directory

CD or CD ~: Go to the current user's home directory

CD ~ ' username ': Go to Username's home directory

CD-: Return to previous working directory


Type ' CMD ': Display file types: Built-in command (shell built-in) or external command (corresponding to an executable file)


Printenv: Displays the current environment variable

Clear: or ctrl+l clear screen

Hash: Show command cache table and hit count

Date

Clock

Hwclock:


Linux Basic 4 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.