bash - How can I make a progress bar (cp copying a directory)? -


i suppose compare number of files in source directory number of files in target directory cp progresses, or perhaps folder size instead? tried find examples, bash progress bars seem written copying single files. want copy bunch of files (or directory, if former not possible).

you can use rsync instead of cp this:

rsync -pa source destination

which give progress bar , estimated time of completion. handy.


Comments

Popular posts from this blog

html - jquery - p element wont show after I hid it -

python - BeautifulSoup: How to get the nearest tag -

mysql - Trying to get RmySQL to work but not understanding bash's export or filesystem conventions -