What is the difference (is there any?) between sudo install -c -o %username% binaryfile usr/local/bin
and just moving binary file to usr/local/bin
?
Install binary file != move binary to path folder
command lineinstall
command lineinstall
What is the difference (is there any?) between sudo install -c -o %username% binaryfile usr/local/bin
and just moving binary file to usr/local/bin
?
Best Answer
When you use
install
, it will copy a file to it's destination, whilemv
changes the directory listing and is atomic. When you move a file from one file system to another thenmv
is not atomic and will copy the file to the other file system then remove the source file. Obviously,mv
andinstall
have different options withinstall
offering you more fine grain choices.