Live data from Hacker News

Suicide Linux

qntm.org

21–30 of 135 posts

Re: Suicide Linux

#21
post #6

a less destructive version of this is to install `sl` on your linux or mac.

I never type sl, but often type "gerp". I have an alias though.

for me it's "date" and "data" since I type both of those quite a lot (I don't have a clock on my desktop, I just use date when I need to know the time, I find a clock distracting because I get that "well it's 27 minutes til that meeting, never getting in the the zone in that time, better check HN" thing).

Re: Suicide Linux

#26

> You know how sometimes if you mistype a filename in Bash, it corrects your spelling and runs the command anyway? What? No, what's that about?

There's the cdspell shopt: "If set, minor errors in the spelling of a directory component in a cd command will be corrected. The errors checked for are transposed characters, a missing character, and a character too many. If a correction is found, the corrected path is printed, and the command proceeds." (https://www.gnu.org/software/bash/manual/html_node/The-Shopt...)

Re: Suicide Linux

#28
post #6

a less destructive version of this is to install `sl` on your linux or mac.

I never type sl, but often type "gerp". I have an alias though.

A friend of mine aliased `git status` `git statsu`; I, being lazier, chose `git st`. Any time saved I lost by not copying his other alias, `c = commit -amSTUFF`...

Re: Suicide Linux

#29
post #6

a less destructive version of this is to install `sl` on your linux or mac.

Fun story:

I was in a sys admin class with a friend of mine and we both had access to the same machine to work on our assignments. I aliased each and every common command to `sl -f` on my friend's user as a prank (he never actually logged in as it turns out). However, my instructor, while projecting his screen to 150+ students (and recording) picked our box and my friend's user to use as an example. My instructor was flabbergasted for a few minutes and the class got a kick out of flying trains. :D

Re: Suicide Linux

#30
> The reaction from the OS is actually rather underwhelming.

Somehow related, a coworker at a previous place unmounted some disks on an old AIX production box. It took him a solid minute to realise he had mistakenly unmounted / due to a typo (yes it was possible) as old processes with already opened files were happily serving stuff and only new attempts at opening files were beginning to produce errors.

Also, a similar interactive mishap in the heat of the action:

    somebox:~$ rm * .o
    rm: .o: No such file or directory
    somebox:~$ # ...
    somebox:~$ # *stares a prompt*
    somebox:~$ # Wait, what? _Please_ tell me those C files were versioned! (The answer was, obviously, "no")
Post reply on HN