! 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 !<

  • Einar@lemm.ee
    link
    fedilink
    arrow-up
    7
    arrow-down
    1
    ·
    3 hours ago

    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. 😄

    • Badabinski@kbin.earth
      link
      fedilink
      arrow-up
      11
      ·
      3 hours ago

      find is also just a fucking mess in terms of UX. The fact that the ordering of positional and optional arguments are so strongly tied to each other has always driven me fucking bonkers. Nowadays, I install fd everywhere I can and tell people to switch to it and never look back. locate is nice and all, but I always forget to update the db and I don’t want it populating in the background.

      tar doesn’t bug me as much, provided you use unix or GNU style options. tar xvf foo.tar is just icky and less readable than tar -xvf foo.tar. I will happily concede that it’s not very ergonomic though. I used to rely on things like dtrx (short for Do The Right eXtraction) because it was such a pain to remember the options for tar/unrar/unzip/7z.