"CentOS" catalog file related

Source: Internet
Author: User

I. Directory-related commands

1.mkdir

-P Recursive creation

-V Visual creation

2.rmdir (usually do not use this command, because it is easy to accidentally delete the file, so instead of Rm-r, the following will speak)

3.rm

-R operation of the directory

-F Force Enforcement

-I asks whether to delete (default input rm-i)

If you want to use a real RM, then/BIN/RM, or cancel its alias Unalias RM

4.cp

-R operation of the directory

-I is also default to Cp-i

If you want to use the real CP, ibid.

5.MV (nudge, rename)

-V Visual operation

-I. Ibid.

Note that the MV command does not have the-R

Ii. text-related commands and file attributes

1.cat/tac

View and reverse view in a positive order

2.more/less

Common shortcut keys related to text:

Page Flip: J down-cut k up look, Big Brother G to the front, little brother G to the last

Search:/what down find, what to look up

3.head/tail

4. File attributes

"File type" "belong to Main" "belong to Group" "Other person"

-Normal file

C Character file

B-Block file

s socket file

L Soft Link File

P Pipeline File

5. Modify Properties command

Chown username:groupname FileName [-r]

chmod----->a=all,u=user,g=group,o=other

Chattr +i cannot be modified, deleted, renamed

+a can only be appended, cannot be modified, deleted, renamed

Lsattr

The S property of the file, the T attribute (note distinction)

"CentOS" catalog file related

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.