Acquaintance command line

concept

Command Prompt is in the operating system, prompting one of the working command prompt input. Under different operating system environments, command prompt vary.

Related Words

English translation
directory Directory, folder
file file
make New
remove delete
move mobile
copy copy
list Set out
link link
find Seek
echo Echoed repeatedly
touch touch
change change

 

abbreviation

command Full Write abbreviation
Create a directory make directory mkdir
delete remove rm
Move / Rename move mv
copy copy cp
Set out list ls
Change directory change directory cd

Abbreviation Rules: Subtitle deletion vowel (AEIOU), reserves the first 2-3 consonants

Common command comes

operating command Remark
Enter the directory cd  
Displays the current directory pwd  
Create a directory mkdir directory name  
Create a directory mkdir -p directory path  
who am I whoami  
-- --  
View route ls path View catalog
View route ls -a path See all the hidden directory and directory
View route ls -l path View catalog details
View route ls -al path View catalog details and hidden directory
-- -- Indicates indicate the current directory .. the parent directory, file begins. Does not appear on the desktop
Create a file echo '1'> File Path  
Force the creation files echo '1'>! file path windows unavailable echo'1 '> with the file path (covering effect)
Additional file contents echo '1' >> File Path  
Create a file touch filename  
Change the file update touch filename  
-- --  
Copy files cp source path target path  
Copy directory cp -r source path target path  
-- --  
Mobile node mv source path target path  
-- --  
Delete Files rm file path  
Forced to delete files rm -f file path  
Remove directory rm -r directory path -r recursive
Force delete directory rm -rf directory path f Force
-- --  
Check the directory structure tree so that Windows supports tree  
Softlinks ln -s file link real  
-- --  
download file curl -L https://www.baidu.com > baidu.html  
拷贝网页 wget -p -H -e robots=off https://www.baidu.com (Windows 不支持 wget)  
磁盘占用 df -kh  
当前目录大小 du -sh .  
各文件大小 du -h  

 

参考资料:

 

Guess you like

Origin www.cnblogs.com/BUBU-Sourire/p/11027202.html