this post was submitted on 30 Sep 2024
115 points (94.6% liked)
196
16501 readers
3397 users here now
Be sure to follow the rule before you head out.
Rule: You must post before you leave.
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Somewhat OT, but some commands can be annoyingly inconsistent and/or confusing as well. Examples:
cp
requires the-r
flag to copy directories recursively, whilemv
does not need any additional flags.find
searches for files in real-time based on various criteria, whilelocate
uses a pre-built database to find files quickly. I know they have separate use cases, but for beginners...The
zip
syntax is straightforward for both archiving and compressing. For example,ยzip archive.zip file1 file2
. Thetar
syntax on the other hand is confusing, especially when adding compression. I mean, look at this bad boy:tar -czvf archive.tar.gz file1 file2
.Wonder if I should post this under [email protected]. ๐
but how would you mv something without moving all it contains?
is there a non -r use case? ๐ค
I see it as: mv is just renaming a file, in this case a directory file, with a different full name (path)