Common Linux commands at work

Source: Internet
Author: User

I. Catalogue

    • pwd display of course directory

    • LS Displays the file (clip) in the current directory

    • ll or ls-l detailed display of the file (clip) information in the current directory

    • CD.. Return to the top level directory

    • CD. current directory

CD/ return root directory

CD- returns the last directory

    • CD ~ Enter the current user directory

    • mkdir Creating a directory

    • MV Move file (clip)/rename

Format: MV [parameter] [source file/directory] [destination file/directory]

Parameter:-F force coercion, if the target file already exists, does not ask to overwrite directly

- I. Interactive Interaction, the target file already exists, will ask whether to overwrite

Example 1: Moving test-1 to Lengjf-blog

Example 2: Move test-1 to test and rename to test-01

    • RM Delete file (clip)

Format: RM [parameters] [File/directory]

Parameter:-R Delete Directory

-F will be prompted when deleting

RM-RF is a very dangerous command to use carefully.

Common Linux commands at work

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.