TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: ALL_CAPS => sudo all_caps (Bash)

20 pointsby al_form2000over 5 years ago

8 comments

nfriedlyover 5 years ago
FYI, in bash, "sudo !!" re-runs the previous command with sudo.
评论 #21313557 未加载
评论 #21318720 未加载
评论 #21320587 未加载
philshemover 5 years ago
Reminds me of<p><a href="https:&#x2F;&#x2F;github.com&#x2F;nvbn&#x2F;thefuck" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;nvbn&#x2F;thefuck</a>
hackbinaryover 5 years ago
up arrow<p>ctrl-a (readline command for beginning of line)<p>type &quot;sudo&quot;<p>Also, ctrl-w is really useful. Heck, learning the readline editing keyboard in general is really useful.
评论 #21314070 未加载
评论 #21312803 未加载
rudivover 5 years ago
Remember, all caps when you spell the man name.
timeattackover 5 years ago
Most often case is when you forget to type sudo before command. This implementation propose to re-type executable name in all-caps (or type it in all-caps beforehand).<p>More efficient approach is to use keybinding like Ctrl+T to prepend sudo to the current command (or to the previous command if current is empty).
评论 #21314311 未加载
评论 #21312691 未加载
sonofgodover 5 years ago
This is hideous. Congratulations! :D
gnulinuxover 5 years ago
Isn&#x27;t typing &#x27;sudo yum&#x27; faster than &#x27;YUM&#x27;?
评论 #21314430 未加载
taejoover 5 years ago
Did some kind of automoderation break the title by changing ALL_CAPS to All_caps?
评论 #21314339 未加载