linux查看命令的进度,progress

progress - Coreutils Progress Viewer progress.svg?branch=master

What is it

This tool can be described as a Tiny, Dirty, Linux-and-OSX-Only C command

that looks for coreutils basic commands (cp, mv, dd, tar, gzip/gunzip,

cat, etc.) currently running on your system and displays the

percentage of copied data. It can also show estimated time and throughput,

and provides a "top-like" mode (monitoring).

ceafc6619e4b5046c42e36bbbba3fce5.png

(After many requests: the colors in the shell come from powerline-shell. Try it, it's cool.)

Formerly known as cv (Coreutils Viewer).

How do you install it

On deb-based systems (Debian, Ubuntu, Mint, etc.) run:

apt install progress

On rpm-based systems (Red Hat, CentOS, SUSE, etc.), run:

yum install progress

On macOS, with homebrew, run:

brew install progress

On macOS, with MacPorts, run:

port install progress

How do you build it from source

make && make install

It depends on library ncurses, you may have to install corresponding packages (may be something like 'libncurses5-dev' or 'ncurses-devel').

How do you run it

Just launch the binary, progress.

What can I do with it

A few examples. You can:

monitor all current and upcoming instances of coreutils commands in

a simple window:

watch progress -q

see how your download is progressing:

watch progress -wc firefox

look at your Web server activity:

progress -c httpd

launch and monitor any heavy command using $!:

cp bigfile newfile & progress -mp $!

and much more.

How does it work

It simply scans /proc for interesting commands, and then looks at

directories fd and fdinfo to find opened files and seek positions,

and reports status for the largest file.

It's very light, and compatible with virtually any command.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值