Give you one of my future---linux no:3 linux basic commands

Source: Internet
Author: User
Tags create directory

The command we use when using Linux is nothing more than command + options + parameters

Example Shutdown-h now shutdown/is the command to shut down-h/is the option now/is the parameter

Main learning File/directory operations: View, create, copy, delete, move, rename

View: cd/view ls/list files for the current directory. /return to the previous layer Ls/path list files under/path ls/path-l detailed path files

Example: View Usr/local/share

Example: Back to view usr/local

Create: mkdir/Create

Example: We are going to create a directory MP1

Example: We want to create two or more directories MP2 mp3

Example: We want to create a level two or multilevel directory Guangdong/maoming/dianbai

Creation failed: Could not create directory, no guangdong/maoming/dianbai such file or directory

If you encounter an error, you should dare to find the problem

Create a cascading catalog Mkdir-p/d1/d2/d3

Need to add a parameter-p

Replication: copy/copy cp/command-r/recursion

Example: We're going to copy MP2 to MP1.

Example: We want to copy MP1 's A.txt file into mp3

Delete: rmdir/Delete rm/command-r/represents loop iteration-f/coercion

Example: Deleting a a.txt file under MP1

Example: Deleting a directory used under MP1

Mobile: move/Mobile mv/Mobile

Example: Moving MP2 to MP1

Example: Moving MP1 under the MP2 move out

Renamed: mv/renamed

Example: MP1 converted to MP

This is the basic Linux command.

Give you one of my future---linux no:3 linux basic commands

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.