使用cp命令複製大量文件時,無法監視當前的進度,progress工具很好地解決了這個問題。
1、官網提供了下載鏈接,地址:https://github.com/Xfennec/progress
或者使用命令 $git clone [email protected]:Xfennec/progress.git
2、編譯安裝
$sudo make && make install
注意,重點來了:
如果提示缺少 ncurses 包,請安裝 ncurses-devel.x86_64 包(centos 6.8)或者 libncurses5-dev包(ubuntu 16.04)
1)centos系統下搜索和安裝:
$yum list | grep ncurses
$yum install ncurses-devel.x86_64
2)ubuntu系統下搜索和安裝:
$apt-cache search ncurses
$apt install libncurses5-dev
3、使用
1)watch progress
2)watch -d progress -wc cmd
... 更多使用查看watch和progress命令幫助