What is your single most favorite command-line trick using Bash? -


we know how use <ctrl>-r reverse search through history, did know can use <ctrl>-s forward search if set stty stop ""? also, have ever tried running bind -p see of keyboard shortcuts listed? there on 455 on mac os x default.

what single favorite obscure trick, keyboard shortcut or shopt configuration using bash?

renaming/moving files suffixes quickly:
cp /home/foo/realllylongname.cpp{,-old}

this expands to:
cp /home/foo/realllylongname.cpp /home/foo/realllylongname.cpp-old


Comments

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -