I am compiling a list of useful bash commands that most developers don't know about. It'll be great to see what commands you guys like the most.
Please share your favorite terminal tricks so that we all can learn some cool stuff from each other.
type instead of which - lots of commands are not binaries and don't show up for which.
ctrl+r for reverse searching commands.
cd - and cd ~
Also... don't replicate your bash profile on every machine you use. Keep your real stuff in source control or dropbox, then source it on each machine. Makes life easier.
Download and unextract directly a .tar.gz archive (bash alias):
dluntar() { tar zxv < <(wget -q -O - $1) }
My cheeky bash trick ;-)
cd /etc/yum.repos.d/
wget download.opensuse.org/repositories/shells:fish:re…
yum install fish
Margaret
I Love Simple Designs
The
ideacommand. I read about this a few days back and found it really interesting.Many times we want to jot down some ideas, notes etc while working. It would be awesome if we could just type
ideainto terminal and start taking notes. Here is how to do it :touch ~/.ideas.mdbash_profileto open it quickly -alias idea="vim ~/.ideas.md"ideain terminal.Now I use this setup actively whenever I need to note down something.