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.
Show HN: ALL_CAPS => sudo all_caps (Bash)
21–26 of 26 posts
Re: Show HN: ALL_CAPS => sudo all_caps (Bash)
#22Re: Show HN: ALL_CAPS => sudo all_caps (Bash)
#23FYI, 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)
#24FYI, in bash, "sudo !!" re-runs the previous command with sudo.
Thanks for that little tip! It's a constant mistype for me...
$ apt install something
E: Unable to acquire the dpkg frontend lock
(/var/lib/dpkg/lock-frontend), are you root?