Hacker News new | past | comments | ask | show | jobs | submit login
Show HN: Tip – use ctrl and w to rapid delete in terminal / shell
11 points by abpai on March 18, 2015 | hide | past | favorite | 8 comments
hours of life saved :)




This is glorious!


This handling comes from readline, rather than your terminal/shell.

Readline has many shortcuts available here's a random assortment:

http://teohm.com/blog/2012/01/04/shortcuts-to-move-faster-in...


^W, ^U, ^C, ^S, ^Q, ^Z, etc are handled by the terminal driver. See stty -a


Useful tip. Made me realise ctrl-s works to go to start of line and ctrl-e to end of line. This is probably common knowledge for any Linux user but for me as a Mac user it's a revelation.


You mean ctrl-a for beginning-of-line?


Yeah, it's ctrl-A for start of line.

Here's a good cheatsheet: http://www.bigsmoke.us/readline/shortcuts


Thank you! Didn't know this till today.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: