pwd
The directory you are standing in is called the working directory. To find the name of the working directory, use the pwd command.
![](https://img.haomeiwen.com/i12334242/1ec557ae4298897a.gif)
ls
To list the files in the working directory, use the ls command.
![](https://img.haomeiwen.com/i12334242/f8722ad7b875f34a.gif)
cd
cd /usr
cd /usr/bin
cd ..
".." notation refers to the working directory's parent directory
cd ./bin
cd bin
![](https://img.haomeiwen.com/i12334242/5fc80ce90f3f1c09.gif)
http://www.linuxcommand.org/lc3_lts0020.php
直接进入某个目录
cd ~/directoryName
![](https://img.haomeiwen.com/i12334242/87f05311a0318297.gif)
https://zhidao.baidu.com/question/181421264.html
删除目录
rm -rf directoryName
![](https://img.haomeiwen.com/i12334242/424e252ebaf22779.gif)
读取文件内容
cat fileName
![](https://img.haomeiwen.com/i12334242/64b6abac959c953b.gif)
Show All Running Processes in Linux
https://www.cyberciti.biz/faq/show-all-running-processes-in-linux/
How do I edit files on the command line
To open the file, run
vi /path/to/file
Press i
to enter the Insert mode.
To leave the Insert mode press ESC
.
To delete the character that is currently under the cursor you must press x
If you haven't made any changes, press :q
to leave the file (but you must not be in Insert mode).
If you have made changes, but want to leave the file without saving the changes, press :q!
(but you must not be in Insert mode).
https://www.howtoforge.com/faq/how-to-edit-files-on-the-command-line
https://www.computerworld.com/article/2598082/linux/linux-linux-command-line-cheat-sheet.html
网友评论