MU Lesson Linux Learning Notes (iv) common commands (1)

Source: Internet
Author: User

Root indicates the currently logged on user

LocalHost host name

~ Current location (~ =/root)

# Super User

$ normal User

Command

1.pwd Show Current Location

2.ls querying content in a directory

-a displays all files, including hidden files (the. Start with hidden files)

- L display details-LH ll=ls-l

-D View Directory properties

-H humanized Display file size

-I displays the ID number of the Inode file

-rw-r--.

File type (-File d directory | Soft link (shortcut))

rw-r--R

U owner G Holder O Other

R Read W write X Execute

3. mkdir Create a directory

-P recursion

4.CD switch in the same directory

Cd ~ Back to home directory

cd– Last Directory

Cd.. Parent Directory

5.rmdir Delete Empty Directory

6.RM Deleting directories and files

-R Delete Directory

-RF Enforcement

7. CP Replication

-R Copy Directory

-P Joint File attribute copy

-D Replication Link Properties

-A equals-pdr

8.MV Clipping

In the same directory can be used to rename

MU Lesson Linux Learning Notes (iv) common commands (1)

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.