Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

control-r

for reverse shell history search. Took me a couple of years of history|grep before I bothered to look it up

control-x *

to expand a glob pattern directly. So if you're writing "rm foo*" and you want to be sure what it will actually do, C-x * and you now have it explicit and editable

Works in bash at least



escape + . for repeating the last argument from the last command

There are other commands to grab other arguments [0].

[0] https://stackoverflow.com/questions/4009412/how-to-use-argum...




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

Search: