Common linux command system commands -shell

ctrl + alt + t enter
exit to exit ctrl + d

After shutdown shut off five minutes +5 revocation -c -r restart
man man ls ls command described in the command description explains exit q


clear clear screen ctrl + l

pwd view the path
cd path switching
ls displays the file in the current directory (folder) -l -a detailed hide
echo standard output echo 'content'> file contents are written to cover the contents of the original document file delete
echo 'content' >> file content additional write file file delete the original content covering
cp copy the file copy cp file flie1 to file flie1 / cp file folder to folder
mv mv move file folder to folder / mv file file1 rename the file
rm file delete files rm -rf delete a folder
touch new file
mkdir -p New folder
contents cat to read the file
head -n first few lines of
a few lines after -n tail
chmod 777 file change read and write permissions chmod / chmod 111 file
in connection in flie source file -s flie1
grep View


LS | grep 'Word'
grep 'if' /home/tarena/chenlu/code/month02/day19/http_server2.py -i -n
lines -n contained within view files 'if' is displayed when viewing the line number is not -i case sensitive

ls -l | grep ^ d folder
ls -l | grep ^ - file

 


document file find find path -name file Find Path display file directory under the absolute path, not showing empty
find path -type f / d #f d file folder

 

How many lines within wc file to view the files word byte
date display date

Guess you like

Origin www.cnblogs.com/chenlulu1122/p/11888592.html