DOCS: Update cp command on 02-upgrading.mdx
Hello all,
Proposed change is to update cp command on linux tab as most linux distros have cp aliased to ask for overwriting the file cp -i so you would have to type yes | cp -rf <source> <destination> but its probably not the best option. Adding /bin/cp -rfv <source> <destination> shows progress and replaces without prompt interaction.
Below I added some examples of the proposed change
# example showing alias and executing the command which requires saying yes on all prompts
$ alias cp
alias cp='cp -iv'
$ cp -rf Onion-v4.2.3/* /run/media/pc/2241-B208/
cp: overwrite '/run/media/pc/2241-B208/BIOS/capsimg.so'? y
'Onion-v4.2.3/BIOS/capsimg.so' -> '/run/media/pc/2241-B208/BIOS/capsimg.so'
cp: overwrite '/run/media/pc/2241-B208/BIOS/.advance/ARCADE.lst'? y
'Onion-v4.2.3/BIOS/.advance/ARCADE.lst' -> '/run/media/pc/2241-B208/BIOS/.advance/ARCADE.lst'
cp: overwrite '/run/media/pc/2241-B208/BIOS/.advance/AdvanceMAME.xml'? y
# Adding absolute path /bin/cp overwrites the alias and works as expected without interactive prompt
$ /bin/cp -rfv Onion-v4.2.3/* /run/media/pc/2241-B208/
'Onion-v4.2.3/BIOS/capsimg.so' -> '/run/media/pc/2241-B208/BIOS/capsimg.so'
'Onion-v4.2.3/BIOS/.advance/ARCADE.lst' -> '/run/media/pc/2241-B208/BIOS/.advance/ARCADE.lst'
'Onion-v4.2.3/BIOS/.advance/AdvanceMAME.xml' -> '/run/media/pc/2241-B208/BIOS/.advance/AdvanceMAME.xml'
'Onion-v4.2.3/BIOS/.advance/BinggraeMelona.ttf' -> '/run/media/pc/2241-B208/BIOS/.advance/BinggraeMelona.ttf'
'Onion-v4.2.3/BIOS/.advance/Default configuration files.7z' -> '/run/media/pc/2241-B208/BIOS/.advance/Default configuration files.7z'
'Onion-v4.2.3/BIOS/.advance/NEOGEO.lst' -> '/run/media/pc/2241-B208/BIOS/.advance/NEOGEO.lst'
<omitted>
...
On second thought, if adding absolute path is not suitable due to possible binary location issues (even though very unlikely) we could add the alternative command as a note below?
Closed as inactive