this post was submitted on 30 Sep 2024
112 points (94.4% liked)

196

16509 readers
2582 users here now

Be sure to follow the rule before you head out.

Rule: You must post before you leave.

^other^ ^rules^

founded 1 year 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 1 month 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 1 month ago* (last edited 1 month 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 1 month 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)