New and Helpful Aliases

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.

Post to Twitter Post to Delicious Post to Digg Post to Reddit

No related posts.

Related posts brought to you by Yet Another Related Posts Plugin.

This entry was posted in CLI. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>