• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Xfennec/progress: Linux tool to show progress for cp, mv, dd, ... (formerly know ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

Xfennec/progress

开源软件地址(OpenSource Url):

https://github.com/Xfennec/progress

开源编程语言(OpenSource Language):

C 90.3%

开源软件介绍(OpenSource Introduction):

progress - Coreutils Progress Viewer Build Status

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).

progress screenshot with cp and mv

(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', 'libncursesw6' 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人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap