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
Post a Comment