技术员联盟提供win764位系统下载,win10,win7,xp,装机纯净版,64位旗舰版,绿色软件,免费软件下载基地!

当前位置:主页 > 教程 > 服务器类 >

CentOS如何查看命令执行进度

来源:技术员联盟┆发布时间:2017-04-13 13:44┆点击:

  PV 全命为Pipe Viewer,利用它我们可以查看到命令执行的进度。

  # wget

  # tar xjf pv-1.1.4.tar.bz2

  # cd pv-1.1.4

  # ./configure

  # make && make install

CentOS如何查看命令执行进度 三联

  例:我需要将/home/ftp/vqiu 目录下打包文件名称为vqiu@yy-mm-dd.

  # tar -p -cf - /home/ftp/vqiu | pv --size `du -sk /home/ftp/vqiu | cut -f 1`k | gzip >/home/ftp/vqiu@`date +%y-%m-%d`.tar.g