Linux tool to show progress for cp, mv, dd, ... (formerly known as cv)

本家様 https://github.com/Xfennec/progress

大きいファイルをcp、mvしたときにあと何分で終わるのか?どのくらい完了したのか?を示してくれるツール

インストール

[root@c ~]# git clone https://github.com/Xfennec/progress
Cloning into 'progress'...
remote: Enumerating objects: 426, done.
remote: Total 426 (delta 0), reused 0 (delta 0), pack-reused 426
Receiving objects: 100% (426/426), 250.57 KiB | 393.00 KiB/s, done.
Resolving deltas: 100% (228/228), done.
[root@c ~]#
[root@c ~]# cd progress/
[root@c progress]# ls -CF
LICENSE   README.md    hlist.c  progress.1  progress.h  sizes.h
Makefile  capture.png  hlist.h  progress.c  sizes.c
 
[root@c progress]#
[root@c progress]# make
cc -g -Wall -D_FILE_OFFSET_BITS=64 -c progress.c
cc -g -Wall -D_FILE_OFFSET_BITS=64 -c sizes.c
cc -g -Wall -D_FILE_OFFSET_BITS=64 -c hlist.c
cc -Wall progress.o sizes.o hlist.o -o progress -lm -lncurses
[root@c progress]#
[root@c progress]# make install
Installing program to /usr/local/bin ...
Installing manpage to /usr/local/share/man/man1 ...
[root@c progress]#

簡単に make; make install で終わります。
*ncurses-develパッケージが必要です

使う

例えば cp コマンドを発行して

[illya@c ~]$ cp /mnt/CentOS-7-x86_64-DVD-1708.iso .

別のターミナルで、このprogressコマンドを実行します。

[illya@c ~]$ progress -w
[16279] cp /mnt/CentOS-7-x86_64-DVD-1708.iso
        48.2% (2.0 GiB / 4.2 GiB) 104.2 MiB/s remaining 0:00:21
 
[illya@c ~]$

このように 4.2GiB ファイルが、2.0GiB 転送されて、目下転送速度は 104.2MiB/s であと残り時間 21sec と生じされます。

表示されるのは当然自分のプロセスだけです。

最新の60件
2025-01-13 2025-01-12 2025-01-08 2024-12-30 2024-12-29 2024-12-24 2024-12-22 2024-12-20 2024-12-17 2024-12-15 2024-12-14 2024-12-12 2024-12-11 2024-12-10 2024-12-09 2024-12-08 2024-12-04 2024-11-28 2024-11-22 2024-11-15 2024-11-14 2024-11-12 2024-11-06 2024-11-05 2024-11-04 2024-11-02 2024-11-01 2024-10-29 2024-10-28 2024-10-27 2024-10-23 2024-10-18 2024-10-17 2024-10-15 2024-10-14 2024-10-13 2024-10-11 2024-10-10 2024-10-09 2024-10-08 2024-10-05 2024-10-04 2024-10-03

edit


トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2019-09-15 (日) 02:05:09