Common operations for Linux files

Source: Internet
Author: User

Build directory: mkdir

mkdir-p [directory Name]

-P Recursive creation

Command English original: Make directories

directory where you switch: CD

CD [catalogue]

CD ~ Enter the current user's home directory

Cd

CD-Go to last directory

Cd.. Go to the top level directory

Relative path: Search by reference to the current directory

such as: CD. /user/local/src

Absolute path: Specified from the root, recursive lookup at the first level. In any directory, access to the specified location

such as: cd/etc

Command completion: ' Tab ' key, can be complete at a time, two can list the relevant commands used ...

Delete Empty directory rmdir (only empty directory)

Delete files or directories: RM

RM-RF [file or directory]

Command English original meaning: remove

Choose:

-R Delete Directory

-F Mandatory

Copy command: CP

CP [SELECT] [Original file or directory] [target directory]

Command English Original: copy

Choose:

-R Copy Directory

-P Joint File attribute copy

-D If the source file is a linked file, copy the link property

-a equivalent to-PDR (common)

Cut or rename command: MV

MV [original file or directory] [target directory]

Command English Intent: move

Link command: LN

Ln-s [Original document] [target document]

Command English original meaning: link

Command English original meaning: link

Function Description: Generate link file

Select:-S to create a soft link

Common operations for Linux files

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.