this post was submitted on 30 Sep 2024
115 points (94.6% liked)

196

18195 readers
415 users here now

Be sure to follow the rule before you head out.


Rule: You must post before you leave.



Other rules

Behavior rules:

Posting rules:

NSFW: NSFW content is permitted but it must be tagged and have content warnings. Anything that doesn't adhere to this will be removed. Content warnings should be added like: [penis], [explicit description of sex]. Non-sexualized breasts of any gender are not considered inappropriate and therefore do not need to be blurred/tagged.

If you have any questions, feel free to contact us on our matrix channel or email.

Other 196's:

founded 2 years ago
MODERATORS
 

! A screenshot of a Linux terminal showing some packages being installed. One of the package is named "fribidi". This name rhymes with something that evokes visceral horrors beyond comprehension.
An image of a Vietnam war soldier having flashbacks is superimposed !<

you are viewing a single comment's thread
view the rest of the comments
[–] original_reader@lemm.ee 25 points 10 months ago (11 children)

Somewhat OT, but some commands can be annoyingly inconsistent and/or confusing as well. Examples:

cp requires the -r flag to copy directories recursively, while mv does not need any additional flags.

find searches for files in real-time based on various criteria, while locate 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. The tarsyntax 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. 😄

[–] catharso@discuss.tchncs.de 11 points 10 months ago* (last edited 10 months ago) (1 children)

but how would you mv something without moving all it contains?

is there a non -r use case? 🤔

[–] pmk@lemmy.sdf.org 4 points 10 months ago

I see it as: mv is just renaming a file, in this case a directory file, with a different full name (path)

load more comments (9 replies)