Live data from Hacker News

Show HN: ALL_CAPS => sudo all_caps (Bash)

github.com

21–26 of 26 posts

Re: Show HN: ALL_CAPS => sudo all_caps (Bash)

#21
post #4

Did some kind of automoderation break the title by changing ALL_CAPS to All_caps?

I remember writing the title as ALL_CAPS => sudo all_caps So it appears something did actually change it.

weinzierl got it right. We've edited the title back.

Re: Show HN: ALL_CAPS => sudo all_caps (Bash)

#23
post #3

FYI, in bash, "sudo !!" re-runs the previous command with sudo.

I use it all the time! But also worth remembering that !$ is the object of your last command, so you could do something like

cp /some/tortured/path/to/file.txt /some/other/path/file.txt

chown myuser:myuser !$

Re: Show HN: ALL_CAPS => sudo all_caps (Bash)

#25
post #10
post #3

FYI, in bash, "sudo !!" re-runs the previous command with sudo.

That's not "funny" enough, unless the "!!" is replaced by an emoji.

    papln used multiple exclamation marks and is clearly insane. This incident will be reported.

Re: Show HN: ALL_CAPS => sudo all_caps (Bash)

#26

Earlier quoted context omitted.

because you need press shift while pressing y, u, m to type YUM. I definitely type sudo yum faster.

Do you not have a CAPSLOCK key?

Many people map capslock to Ctrl or Escape. Or both, depending on whether the key is held or tappped.
Post reply on HN