linux cp mv directory with progress bar

One of the things that annoys me the most is when I copy / move a great director in cli I have no idea what percentage of the total size I have rolled over. Unfortunately, cp / mv do not have such forces and we have to resort to alternatives. There are a lot of possibilities, but I personally like the use of rsync instead of pc / mv. It has everything built-in – preserve rights over files and directories, progress bar as well as the ability to delete copied files.

In general, I did 2 alias that do more than wonderful work:

alias cpi='rsync -a --info=progress2'
alias mvi='rsync -a --info=progress2 --remove-source-files'

Leave a Reply

Your email address will not be published. Required fields are marked *

Anti SPAM *