Posted under » Linux on 1 November 2009
Tired of typing the same long commands over and over? Do you feel inefficient working on the command line? Bash aliases can make a world of difference. To start
$ vim ~/.bash_aliases alias flush_redis='redis-cli -h 127.0.0.1 FLUSHDB'
Save and exit.
All new aliases will be available next time you login using a new ssh/terminal session. To load changes immediately, type the following source command:
$ source ~/.bash_aliases
To list all alias
$ alias
To remove alias
$ unalias flush_redis
Not to be mistaken with softlink alias.