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件
2023-12-06 2023-12-05 2023-11-30 2023-11-27 2023-11-21 2023-11-19 2023-11-18 2023-11-14 2023-11-10 2023-11-09 2023-11-05 2023-11-03 2023-10-31 2023-10-30 2023-10-26 2023-10-24 2023-10-19 2023-10-16 2023-10-15 2023-10-12 2023-10-11 2023-10-09 2023-10-03 2023-10-02 2023-09-30 2023-09-29 2023-09-26 2023-09-24 2023-09-19 2023-09-18 2023-09-17 2023-09-16 2023-09-14 2023-09-12 2023-09-11 2023-09-08 2023-09-05 2023-09-02 2023-08-30 2023-08-29

edit


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