linux base instruction 3

7. mv command, here the word refers to the move, moving mean it

  Role: Move the document to a new location

 Syntax: Document the new path of its own position to be moved #mv

 Example 1: moving a folder

 

 Note: You can also rename a file operation,

Example 2: c folder, folder move to b, c and c1 to name

 

 8. rm command

   Meaning: delete documents

  Syntax: Document Path #rm option to be deleted

  Options include:

    -f Forces deletion

   -r Indicates recursion

 Example 1: delete a file

 Note: Be sure to add options, or will be error, as follows

 

 

 Adding options:

 

 Delete the following situation :( In this case, you will not be prompted to confirm the deletion)

 

 Example 2: You can also delete multiple documents

 

 Example 3: Delete the file in a directory have common features, such as: the beginning of the file or folder linux

 

 9. vim instruction   

  First of all it, vim is a text editor

  #Vim file path: Mainly syntax is

  To open a file

 For example :( Now type in some text linux1.txt)

 

 

 

 

 When you exit: Enter After entering q: shift +

 

Well, headache ,,,

Guess you like

Origin www.cnblogs.com/lin1216/p/11579583.html