linux cv cp 安装,cv: cv(Coreutils Viewer) 是一个 Linux 命令行工具,可以用来查看 cp, mv, dd, tar, gzip/gunzip, cat 等命令...

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

What is it

This tool can be described as a Tiny, Dirty 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.)

progress works on Linux, FreeBSD and macOS.

Formerly known as cv (Coreutils Viewer).

How do you install it

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

apt install progress

On archlinux, run:

pacman -S progress

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

dnf install progress

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

On FreeBSD, substitute make with gmake.

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、付费专栏及课程。

余额充值