The Computer Oracle

Why does 'mv' not need '-r' to work with directories, but 'rm' and 'cp' do?

--------------------------------------------------
Become or hire the top 3% of the developers on Toptal https://topt.al/25cXVn
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Puzzle Meditation

--

Chapters
00:00 Question
00:34 Accepted answer (Score 39)
01:20 Answer 2 (Score 62)
02:11 Answer 3 (Score 6)
03:11 Thank you

--

Full question
https://superuser.com/questions/1749025/...

Question links:
[cp]: https://en.wikipedia.org/wiki/Cp_(Unix)
[rm]: https://en.wikipedia.org/wiki/Rm_(Unix)
[mv]: https://en.wikipedia.org/wiki/Mv_(Unix)

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#linux #commandline

#avk47