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

java - How to print docx and pdf? -

qml - Is it possible to implement SystemTrayIcon functionality in Qt Quick application -

java - IntelliJ to move a class along with conflicted classes to a new package? -