Posted: . At: 2:49 PM. This was 8 years ago. Post ID: 9602
Page permalink. WordPress uses cookies, or tiny pieces of information stored on your computer, to verify who you are. There are cookies for logged in users and for commenters.
These cookies expire two weeks after they are set.


A nice utility to show the progress of utilities like cp and mv.


The utility I have found, named progress, will show the amount of data transferred when using commands such as cp or mv.

Download this utility by running this command.

git clone https://github.com/Xfennec/progress.git

Then build the utility.

14:39:50 0 ~
jason$ cd progress/
 
14:39:53 0 ~/progress
jason$ 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 -ltinfo

And run this utility to get the progress of an ongoing copy or move operation.

14:45:20 0 ~/progress
jason$ ./progress 
[ 6149] cp /home/jason/Videos/starwars.mkv
	11.5% (409.2 MiB / 3.5 GiB)

This is how easy it is to get information about a large copy operation when you are using the shell to move large files.

Copy the executable to /usr/local/bin and it will be accessible at the shell whenever you need it.


Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.