Command
.pwd [-P]
.cd [ .. | . | - | / | ~ ]?
? 1. 好像 ~ 不是 / 的子集 ( 對于mac 和 ubantu是)
. mkdir [ -p | m]
1.-p: create file? iteratively
2.-m: give? authority? to this? directory.Example: mkdir -m? 711 test2
.rmdir [ -p ] { only can delete empty directory }
1.-p: remove directory? iteratively
.which [command] ( 查看命令行路徑)
.rm [-rf]
1. -r 向下遞歸刪除
2. -f 強制刪除产徊,不作提示 (--force)
@example
? ? 刪除文件夾實例:rm -rf /var/log/httpd/access
? ? 刪除文件使用實例:rm -f /var/log/httpd/access.log
. file + file's path
. whereis [-bmsu]
? 查找文件或目錄
. locate + filename
. find
1. 有很多不同的參數(shù)用于查詢
. Ls
1. 9805頁 44%
2. ls -|a*
? ls | grep -n '^a.*'