Thursday, May 9, 2024
 Popular · Latest · Hot · Upcoming
58
rated 0 times [  58] [ 0]  / answers: 1 / hits: 27552  / 2 Years ago, sun, october 16, 2022, 7:17:51

I think the title is pretty self-explanatory. All i want is bash to warn me whenever I attempt to overwrite an existing while using cp or mv. I'd really appreciate some help. :)


More From » bash

 Answers
1

You should use the interactive mode which makes sure you get a 'prompt before overwrite'



cp --interactive
mv --interactive


Or in short



cp -i
mv -i


Type man cp or man mv on your command line to find out more.


[#33348] Monday, October 17, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
cretanol

Total Points: 320
Total Questions: 99
Total Answers: 115

Location: Australia
Member since Sat, May 27, 2023
1 Year ago
;