Some aliases I have added of late and found to be useful:
Displays a calendar and then your locale’s 12-hour clock time:
1 | alias now='cal;date +%r' |
For those who often like to edit X display config:
1 | alias editxorg='sudo vim /etc/X11/xorg.conf' |
For those use window managers without a shutdown button:
1 | alias turnoff='sudo shutdown -h now' |
Does all you need to do for updating:
1 2 | alias updateme="sudo aptitude update && sudo aptitude safe-upgrade && \ sudo aptitude dist-upgrade && sudo aptitude autoclean" |
I am also working on something that I hope to works as follows. “help CMD” will run “CMD -h” or “–help”, checking the results. If that fails, it runs “info CMD”, then “man CMD”. The idea being that you can use one command to display information on a command, and it will get you to the first that has something to show. This would be helpful when one runs into programs that do not handle -h, or only have a man page, etc.
No related posts.
Related posts brought to you by Yet Another Related Posts Plugin.








