1.fish@ubuntu:~/linux$
- fish 代表用戶名
- ubuntu 代表機器名
- ~ 代表家目錄
- ~/linux 當前所在目錄
- $ 代表普通用戶
- root@ubuntu:/home/python# 管理員對應是#符號
2.回到家目錄的方式
- cd
- cd ~
- $HOME 環境變數代表的是家目錄(我的系統輸出為:/home/fish)
- cd /home/fish
3.顯示當前作業目錄pwd
root@ubuntu:/home/python# pwd
/home/python
4.mkdir 創建目錄
- mkdir [option] dirname1 dirname2...
- mkdir 洗掉目錄
- rmdir 不能洗掉非空目錄,空目錄是只是有.和..
5.which 命令-顯示對應所在的路徑
root@ubuntu:/home/python# which tree
/usr/bin/tree
轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/44925.html
標籤:Linux
