How can I copy files on Bash so that there is any process status bar? For example, as on pip
or git clone
.
Perhaps there is some key for the cp
program?
How can I copy files on Bash so that there is any process status bar? For example, as on pip
or git clone
.
Perhaps there is some key for the cp
program?
In cp
ability to display the copy status is not provided. You can try the pv
utility. She has features that you can read about .
# pv file > /dev/null 1.41GB 0:00:21 [66.3MB/s] [=====================================================>] 100%
pv
recursively can not run? - Dofrirsync
is more suitable for recursive copying. Well, either use pv
with cycles, for example for f in `ls`: do pv ${f} > some_dir/${f}; done
for f in `ls`: do pv ${f} > some_dir/${f}; done
- approximatenumberyou can use rsync with the -P
option (option -r
- recursively, to copy directories):
$ rsync -rP /etc/vim /tmp/vim sending incremental file list created directory /tmp/vim vim/ vim/gvimrc 664 100% 0.00kB/s 0:00:00 (xfr#1, to-chk=2/4) vim/vimrc 2,125 100% 2.03MB/s 0:00:00 (xfr#2, to-chk=1/4) vim/vimrc.tiny 662 100% 646.48kB/s 0:00:00 (xfr#3, to-chk=0/4)
Source: https://ru.stackoverflow.com/questions/506145/
All Articles