您的位置:首页 > 运维架构 > Linux

linux系统中查看命令进度

2018-01-25 18:48 183 查看
使用cp命令复制大量文件时,无法监视当前的进度,progress工具很好地解决了这个问题。

1、官网提供了下载链接,地址:https://github.com/Xfennec/progress

 或者使用命令 $git clone git@github.com: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命令帮助
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: