LS CD for directory operation

Source: Internet
Author: User

Cd:

switch directories,

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

Cd~username: switch to the home directory of the specified user

CD-: switch back and forth between the previous directory and the current directory

.

..

ls view files in the directory

"Built-in Commands"

-A all show all files including hidden files

-a almost-all shows that almost all files are not included : .

-D Display directory

-I display inode

-l Long format

-H human-readable size reader easy-to-read format display , General and- L use together

-R Reverse display

-R Recursive display

The list of parameter –l is as follows

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/71/70/wKioL1XQkTux-gT-AAHfZySHVHo748.jpg "title=" Lss.png "alt=" Wkiol1xqktux-gt-aahfzyshvho748.jpg "/>

First Paragraph First: file type:

- normal file

d Catalog File

L Link File

Block B device file block

C character File

P Pipeline File

s socket file socket

First paragraph second bit: file permissions

permissions per three-bit for a class of users read, write, execute

the first three bits are the master permission

the three-bit is a group permission

after three bits for other users

the second paragraph is number of hard links directories typically have at least two   .   ..

the third paragraph is Owner

the fourth paragraph is Genus Group

the fifth paragraph is file Size (device file is the main device number, secondary device number)

Section 6,7,8 is the last time modified

Nineth paragraph file name

can be used Stat file names can view the metadata of the files as follows

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/71/74/wKiom1XQjvOxknkSAAFQ384ZHAM699.jpg "title=" as.png "alt=" Wkiom1xqjvoxknksaafq384zham699.jpg "/>

Timestamp :Access 's most recent access time will change once it is accessed once.

Modify Last Modified time changes when metadata is modified

Change Changes The last time when changes are changed

change when the content is changed Modify the time, because the file size changes when the content is changed, so the metadata changes


LS CD for directory operation

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.