this post was submitted on 07 Sep 2025
127 points (92.6% liked)

linuxmemes

27170 readers
1651 users here now

Hint: :q!


Sister communities:


Community rules (click to expand)

1. Follow the site-wide rules

2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack users for any reason. This includes using blanket terms, like "every user of thing".
  • Don't get baited into back-and-forth insults. We are not animals.
  • Leave remarks of "peasantry" to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry will not be tolerated.
  • 3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn, no politics, no trolling or ragebaiting.
  • 4. No recent reposts
  • Everybody uses Arch btw, can't quit Vim, <loves/tolerates/hates> systemd, and wants to interject for a moment. You can stop now.
  • 5. πŸ‡¬πŸ‡§ Language/язык/Sprache
  • This is primarily an English-speaking community. πŸ‡¬πŸ‡§πŸ‡¦πŸ‡ΊπŸ‡ΊπŸ‡Έ
  • Comments written in other languages are allowed.
  • The substance of a post should be comprehensible for people who only speak English.
  • Titles and post bodies written in other languages will be allowed, but only as long as the above rule is observed.
  • 6. (NEW!) Regarding public figuresWe all have our opinions, and certain public figures can be divisive. Keep in mind that this is a community for memes and light-hearted fun, not for airing grievances or leveling accusations.
  • Keep discussions polite and free of disparagement.
  • We are never in possession of all of the facts. Defamatory comments will not be tolerated.
  • Discussions that get too heated will be locked and offending comments removed.
  • Β 

    Please report posts and comments that break these rules!


    Important: never execute code or follow advice that you don't understand or can't verify, especially here. The word of the day is credibility. This is a meme community -- even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don't remove France.

    founded 2 years ago
    MODERATORS
    top 50 comments
    sorted by: hot top controversial new old
    [–] kattfisk@lemmy.dbzer0.com 9 points 11 hours ago (1 children)

    My kryptonite is du which reports disk usage, and df which reports disk file size, or no, wait, du is file size and df is disk usage.

    Most of the time I can only remember whichever one I don't need at the moment and futilely hope that its man page will mention the other (which it doesn't).

    [–] umbraroze@slrpnk.net 3 points 4 hours ago

    I'm always like "du shows disk usage of files, and df shows how much of disk is free".

    [–] pineapplelover@lemmy.dbzer0.com 4 points 13 hours ago (1 children)

    I always called it Present Working Directory but apparently it's Print

    [–] bigfondue@lemmy.world 2 points 6 hours ago

    Same, mind blown

    [–] Multiplexer@discuss.tchncs.de 63 points 1 day ago (8 children)

    On a side note:
    I hate it that the password-change command is minimally abbreviated to "passwd".
    Come on, making it much more complicated to remember and saving just two freakin letters??

    [–] schnurrito@discuss.tchncs.de 60 points 22 hours ago (2 children)
    [–] Multiplexer@discuss.tchncs.de 34 points 22 hours ago (3 children)

    But the only command that I have to look up every damn time, although it has no abbreviation at all, is useradd.
    Oh no, wait, I mean adduser!
    ... No, wait again... aah...

    Next update changes it to usadder as a compromise. Supposedly, it's short for "user adder" but we all know it's to make "[you] sadder".

    [–] kattfisk@lemmy.dbzer0.com 1 points 11 hours ago (1 children)

    Ah, damn it! I'll look it up next time. *sudo vim /etc/passwd*

    [–] Ghoelian@lemmy.dbzer0.com 1 points 6 hours ago

    Surely visudo, I hope

    [–] Hawke@lemmy.world 15 points 21 hours ago (3 children)

    All the worse that Debian has both useradd and adduser. I never remember which is the one I want. And in Redhat-derivatives it’s something even more confusing.

    The only thing I ever want to do is add a user to a group, is that too much to ask?

    [–] rtxn@lemmy.world 12 points 20 hours ago* (last edited 20 hours ago)

    adduser is an interactive wrapper for useradd. It can, for example, prompt the user to set a password rather than execute passwd separately. Very useful if you just want to manage a user without reading through useradd's command line options, then running usermod because you forgot to set something.

    It doesn't excuse the bad naming, I'd rather have something like useradd --interactive, but it's worth remembering.

    load more comments (2 replies)
    [–] uranibaba@lemmy.world 6 points 17 hours ago (1 children)

    First time I have to use it, the spelling really confused me. Wrote unmount and didn’t understand why it didn’t work.

    [–] Multiplexer@discuss.tchncs.de 4 points 14 hours ago

    I guess this also must be an additional layer of hellfire for dyslexics...

    [–] tal@lemmy.today 4 points 15 hours ago* (last edited 15 hours ago) (1 children)

    making it much more complicated to remember

    Do you not tab-complete your commands? I mean, my terminal usage for anything beyond very short commands consists of .

    [–] Multiplexer@discuss.tchncs.de 1 points 14 hours ago (1 children)

    Do you not tab-complete your commands?

    Sure I do (although nowadays Strg-r does most of the heavy lifting for me), but as a decent touch-typist I am often faster directly typing short commands, like passwor... damn, I mean: passwd ;-)

    [–] Danitos@reddthat.com 2 points 9 hours ago

    Strg-r does most of the heavy lifting for me

    If you haven't, give fzf a try. Is like Ctrl+r in asteroids

    [–] bacon_pdp@lemmy.world 37 points 1 day ago (1 children)

    They did boatloads of horrific things to save bytes. They radix encoded strings, created the y2k and 2038 problems, normalized redirecting output to /dev/null, passed raw text blocks through a fifo file buffer rather than properly tagged data, ditched proper exception handling and a bunch more listed in the Unix Hater’s Handbook

    https://web.mit.edu/~simsong/www/ugh.pdf

    [–] Multiplexer@discuss.tchncs.de 15 points 1 day ago (1 children)

    Now this looks like an interesting read. Thanks!

    [–] Hawke@lemmy.world 15 points 21 hours ago

    Kinda, but it’s pretty much all horrendously outdated bitching about superficial flaws in tools from 40 years ago.

    [–] kibiz0r@midwest.social 9 points 21 hours ago

    It’s the passw daemon

    [–] abcdqfr@lemmy.world 12 points 1 day ago

    I SAID, pass the wood

    load more comments (3 replies)
    [–] cobwoms@lemmy.blahaj.zone 25 points 23 hours ago (8 children)

    isn't it just 'present working directory'?

    [–] ruuster13@lemmy.zip 8 points 19 hours ago (1 children)

    You "print" to standard output, which is the terminal.

    [–] tal@lemmy.today 2 points 15 hours ago* (last edited 15 hours ago)

    Unless you're old-school and using a teletype as your terminal and actually printing it.

    [–] Hawke@lemmy.world 14 points 22 hours ago (1 children)

    No. β€œPrint working directory” is the command to print (display) the β€œcwd” (current working directory).

    [–] LaggyKar@programming.dev 5 points 19 hours ago (1 children)

    I find it weird when you get "pwd" as a variable

    [–] Hawke@lemmy.world 1 points 13 hours ago

    Kinda yeah, but I think that just comes from storing the output of the PWD command.

    The system call that returns that value is called getcwd().

    load more comments (5 replies)
    [–] captain_aggravated@sh.itjust.works 2 points 13 hours ago (1 children)
    [–] Revan343@lemmy.ca 1 points 13 hours ago
    [–] bitwolf@sh.itjust.works 1 points 13 hours ago

    I use it both for password and pwd interchangeably

    [–] possiblylinux127@lemmy.zip 1 points 14 hours ago

    Sir this is Wendy's

    [–] Lembot_0004@discuss.online 11 points 1 day ago (2 children)

    Just make an alias with a more convenient name.

    [–] abcdqfr@lemmy.world 18 points 1 day ago (1 children)

    alias 'where_the_fuck_am_i'="pwd"

    [–] potoo22@programming.dev 20 points 1 day ago (1 children)

    alias who_the_fuck_am_i='whoami'

    [–] somerandomperson@lemmy.dbzer0.com 18 points 1 day ago (1 children)

    alias what_the_hell_is_going_on='btop'

    [–] DrWorm@piefed.social 11 points 23 hours ago (1 children)

    alias who_the_fuck_is_that=finger

    [–] cupcakezealot@piefed.blahaj.zone 6 points 22 hours ago (2 children)

    alias finger_me='finger $USER'

    [–] NeatNit@discuss.tchncs.de 14 points 22 hours ago (2 children)

    What the hell is wrong with all of you? Command names obviously use - and not _

    [–] somerandomperson@lemmy.dbzer0.com 4 points 19 hours ago (1 children)

    alias too_late='echo πŸ˜›'

    [–] cupcakezealot@piefed.blahaj.zone 3 points 16 hours ago (1 children)

    alias holy-shit-what-does-this-button-d-='rm -rf --no-preserve-root /'

    alias i-like-windows='sudo dd if=/dev/random of=/dev/nvme0n1 bs=4M status=progress'

    load more comments (1 replies)
    load more comments (1 replies)
    load more comments
    view more: next β€Ί