Spyke

Syndicated from the fediverse. Read and engage on the original instance.

View original on lemmy.world

70 replies

discuss.tchncs.de

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

69
discuss.tchncs.de

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

37

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

35
Hawkereply
lemmy.world

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?

15

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.

12
lemmy.world

You'd want usermod for that, no? If the user already exists and you're just modifying their groups?

4
uranibabareply
lemmy.world

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

7

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

15
talreply
lemmy.today

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 .

4
discuss.tchncs.de

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 ;-)

2

Strg-r does most of the heavy lifting for me

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

2
feddit.org

🤷 that's why we have ls, rm, mv and hell, even w.

To confuse things even more there's a utility called pwgen and I can never remember which two letters to type before hitting autocomplete.

4

That is so cool.

So

  • tr = tore
  • tty = totey
  • rsync = rosynce
  • ps = pose
  • pr = pore
  • mpd = moped

I could do this all day.

7
Hawkereply
lemmy.world

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

13

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().

1
ruuster13reply
lemmy.zip

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

7

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

3
4amreply

I mean it’s basically the same thing but the command itself means “print”; it’s a damn old command and it probably predates using screens for terminals (used to be printers); which is why all the parts of Linux (ugh, and GNU of course) that came from Unix ideas came from that age.

You literally sat in front of a typewriter that would respond to you. Wild.

5
lemmy.dbzer0.com

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

15

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

7
NeatNitreply
discuss.tchncs.de

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

16

Unfortunately all the 2, 3 and 4 letter combinations are used as an alias for when i mistype "ls"

4

"If cats looked like frogs we'd realize what nasty, cruel little bastards they are."

  • Lords and Ladies
5
okr765reply
lemmy.okr765.com

Ah yes, everyone knows how "pwd" looks like "pussy" and definitely not "p-word".

1
okr765reply
lemmy.okr765.com

Pretty sure it refers to a clip of the "intellectual" Ben Shapiro being afraid to say the word "pussy" when reading through the lyrics of the song and making misogynistic comments about it

3

Okay, so you did get the wordplay between pwd, pussy, and p-word in the comment.

Unless I'm really slow and I missed another joke I don't get your complaint on my joke response, sorry.

1
feddit.org

I usually abbreviate these "in German" in my head. Esp. handy if there's a freaking double-U in it, which is just one syllable in German. Exception: /etc = Etsy

5
4amreply

I’m still not over the fact that /etc isn’t for et cetera

EDIT: turns out that it is, and that there’s a lot of dumbasses on the internet “teaching”

9

You might be right.
I am German and never had a problem with pwd... The "double-you" certainly breaks some easy phonetic connections you would otherwise just make...

4

My mnemonic is a bit weird, purrent working directory. I know the term cwd (current working directory) but I never bothered to learn what the p stands for, so I named it myself as purrent.

2