The cp
command is part of GNU CoreUtils and one of the features that a lot of people wanted to be implemented would be a progress bar, but as this hasn’t happened yet, a programmer created a patch and made it available on GitHub that can be implemented on GNU CoreUtils and you use it!
Installation
The procedure is very simple, just follow the steps:
The binary will be created in the src
directory, ie coreutils-8.32/src/cp
, you can move it to replace the original cp
with the command: sudo cp src/cp $(which cp)
(cp copies cp 😃).
Or create an alias (I think most recommended):
And test, example:
Use the
--progress-bar
parameter
If you want to avoid using this parameter, create the alias with the parameter, example:
vim ~/.vimrc
and leave the alias in this file like this:
Close, run source ~/.bashrc
and test without the parameter, it will be included automatically:
The same can be used for the mv
command which will also be in src
, however, give preference to the -g
parameter instead of the , it is simpler! But honestly, I don’t see any use in using this in --progress-bar
mv
because things are moved so fast that you don’t even need it.
That’s it for today!