Comments on Copy files while showing progress
Parent
Copy files while showing progress
The standard cp tool from GNU coreutils just copies files silently. This can be a little unnerving when copying large chunks of data. You're left to wonder whether it's actually doing something or just got stuck.
How to copy files and directories in terminal while displaying some kind of progress information?
Use `rsync` instead: ```console $ rsync --progress filename /target/ filename 1,042,841,600 17% 330.84MB/s …
11mo ago
If you don't mind installing an additional tool, `progress` will do exactly what you want. > progress aims to detect …
9mo ago
Pipe Viewer or `pv` is a program for displaying the throughput of any pipe. It can be used to monitor all sorts of trans …
9mo ago
Why not simply use `ls -l` on the target file? Or `ls -lt | head` on the directory? The `-lt` option makes `ls` to sh …
11mo ago
As long as you are working interactively, Midnight Commander is installed by default on every distribution that I know o …
11mo ago
Post
If you don't mind installing an additional tool, progress will do exactly what you want.
progress aims to detect any running command performing significant file I/O. Commonly supported commands include: cp, mv, dd, tar, gzip, gunzip, cat (when copying), rsync (local operations), dpkg, rpm, and various archivers like zip, unzip, xz, bzip2, bunzip2. Its effectiveness depends on how the command performs its I/O and if it keeps file descriptors open predictably.
Example:
$ cp filename /target/ | progress -m
[286427] cp filename
13.2% (753.5 MiB / 5.6 GiB) 166.1 MiB/s remaining 0:00:29
Note: This will only show the individual progress per file copied, no overall progress if multiple files are copied.

2 comment threads