案例:
請用一條命令完成目錄創建/hello/world/test
解答:
mkdir -p?/hello/world/test
-p 遞歸創建目錄,沒有子目錄創建。
案例:
打印hello/目錄的結構
[root@hello110 ~]# tree hello/
-bash: tree: command not found
發現tree命令找不到,原因:沒有安裝擴展包
使用yum安裝,命令如下:
yum install tree -y 。
-y:直接安裝,不用確認了
安裝成功后
[root@hello110 ~]# tree hello/
hello/
└── world
? ? └── test
2 directories, 0 files
[root@hello110 ~]#?
-------------
更多的Java,Angular,Android,大數據,J2EE,Python,數據庫,Linux,Java架構師,:
http://www.cnblogs.com/zengmiaogen/p/7083694.html