this post was submitted on 30 Sep 2024
111 points (94.4% liked)
196
16303 readers
2025 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 !unpopularopinion@lemmy.world. ๐
I learned the proper meaning of tar flags a long time ago, but then I accidentally saw a post somewhere describing "czf" and "xzf" as acronyms in german accent: "Create Ze File!" and "Xtract Ze File!" and now everytime I use tar in the simpler ways I hear in my head a german voice shouting these words as I type the flags.
Tlist Ze File!