My favorite shell aliases
In this post I will introduce some of my favorite shell aliases.
1 | alias calc='bc -l <<<' |
This one lets you calculate directly in the bash terminal like that: calc 1+1
If you wanna use brackets you must enclose the expression in quotes: calc "(4+6)/2"
1 | alias ports='lsof -i -P' |
This one shows all network connections to your host. It displays more information than netstat -anp
and formats it in a nice way.
1 | alias psu='ps -fHU $USER' |
This one shows the processes of the current user in hierarchical order. Nice to see whats going on.
1 | alias vip='sudo su' |
I use this as long as I can remember for switching to root.
Hope it helps,
visit