mv command with progress
2018-03-19
61 words
1 min read
When moving large files/directories, I would like to see the progress.
Idea for this is to use rsync with progress and remove source files. But that option does not remove the empty directories left behind so find command to delete that.
So, here is function for that:
mv-progress () { rsync -ah --progress --remove-source-files "$1" "$2"; find "$1" -empty -delete }
Related Articles:
- 2018/03/12 Highest disk usage of directory in subdirectories
- 2015/11/30 Disk usage by file type
- 2014/10/13 nice little bash function to search for running processes
- 2010/06/09 Scripts to create logins from bash command – for creating multiple accounts
- 2017/03/06 Linux Best Practices and Tips
Authored By Amit Agarwal
Amit Agarwal, Linux and Photography are my hobbies.Creative Commons Attribution 4.0 International License.