Linux common commands and centos7.2

1.cd instruction

Teaching: http: //man.linuxde.net/cd

cd into the user's home directory; 
cd ~ into the home directory; 
cd - returns the directory where prior to entering the directory; 
cd .. return to parent directory (if the current directory is "/", is also performed after the "/"; " .. 'for the parent directory means); 
CD ../ .. return two directories;

2.ls instruction

ls command to display the target list

Teaching: http: //man.linuxde.net/ls

4.cat/vi

cat view the file, vi edit files (esc exit)

3.

1) Create a file touch file name

2) Create a folder mkdir folder name


4.cp instruction

Teaching: http: //man.linuxde.net/cp

The document file is copied to a directory /usr/men/tmpunder, and renamed file1

cp file /usr/men/tmp/file1

The directory /usr/menall files copied to the directory and its subdirectories /usr/zhin ( if you want to copy a directory, you must use -Roption; )

In Chp -r / Usr / / Usr / Sh


Many things are in the / usr / share / doc 

Guess you like

Origin blog.csdn.net/qq_41850194/article/details/80024647