文章目錄
- Linux - 通過 autojump 命令減少 cd 命令的使用
- 1、安裝 autojump
- 2、解決 bashrc 檔案問題
- 3、經常去的幾個目錄,先cd 一遍
- 4、進行快捷跳轉
- 5、其它
Linux - 通過 autojump 命令減少 cd 命令的使用
1、安裝 autojump
git clone git://github.com/joelthelion/autojump.git
安裝
cd autojump
./install.py
卸載
cd autojump
./uninstall.py
2、解決 bashrc 檔案問題
cd ~
打開 bashrc 檔案
vim ~/.bashrc
在檔案的最后 追加一行
xxxxxxxxxxx
這行代碼在你安裝的時候, 軟體會提示你的,你復制上去就行
然后執行
source ~/.bashrc
3、經常去的幾個目錄,先cd 一遍

然后通過命令查看這些目錄的權重
j --stat
路徑前面的數字,就是這個路徑的權重值,權重值高的,如果找到多個時,優先進去
4、進行快捷跳轉

通過 j s 簡寫就可以快速進入某個常用目錄
操作起來,比 UI 頁面的檔案管理器還要快的多
5、其它
1、支持模糊匹配
2、j --purge 清空所有的權重
3、查看資料檔案的內容
cat /root/.local/share/autojump/autojump.txt
CSDN認證博客專家
Spring
架構
分布式
轉載請註明出處,本文鏈接:https://www.uj5u.com/qianduan/75024.html
標籤:其他
上一篇:華為 PPPoE
