Summary of linux instruction learning~~~

                     Summary of linux instruction learning~~~


Directory operations:


mkdir $HOME/testFolder (creates a directory)

cd ./testFolder(cd $HOME/testFolder) (switch directory)

cd .. (change to parent directory)

mv $HOME/testFolder /var/tmp/ (moving directory)

rm -rf /var/tmp/testFolder (remove directory)

ls /var/tmp (view the files in the directory)


File operations:

 touch ~/testFile (create a new file)

ls ~ (see the newly created testFile file)

cp ~/testFile ~/testNewFile (copy new file)

rm ~/testFile (delete file)

cat ~/.bash_history (a very important command, check the typed commands)



filter, pipe, redirect



Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325727101&siteId=291194637