內建指令 hash
hash [-lr] [-p filename] [-dt] [name]hash或hast -d:印出 hash 表中所有記錄的完整路徑及使用次數hash -d name:刪除 hash 表中 name 的紀錄 (可有多個 name)hash -r:刪除 hash 表中所有的記錄hosh -t name:印出 hash 表中 name 的完整路徑 (可有多個 name)hash -p filename name:為 name 在 hash 表建立使用 filename 作為完整的檔名。可用來非標準路徑的執行檔hash -l:印出 hash 表中所有的記錄的完整路徑,採用可輸入格式,可用來事先建立 hash 表用
- man bash
- 內建指令 shopt 選項 checkhash
- 內建指令 type
- restricted shell
- Shell 變數 BASH_CMDS
沒有留言:
張貼留言