alias upbuntu='sudo aptitude update && sudo aptitude upgrade'
alias changesource='sudo vim /etc/apt/sources.list'
alias getkey='sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com '
#quickly move to some files
alias doc='cd ~/Documents'
alias dow='cd ~/Downloads'
#quickly update ,then shutdown
alias bye='upbuntu && sudo shutdown -h now'
--------------------------------------------------------------------------------------------------------------
- upbuntu: It is a good habit what update software often. This alias help you to renew source and upgrade easily.
- changesource: Many people don't know the path of sources.list, so I create a alias let those one can change there sources.list easily. But, there are some problems on vim editor and gedit editor. For example, vim can not edit read-only file, and gedit always crack since the file overflow.
- getkey: When you add a new source, you always need a public key. But, the command getting public key is very long. This alias give a short command such that you can conveniently get public key.
- There are some files that you often view it. alias "quickmovename"="cd /path" can help you to quickly move to the path.
- bye:When you want to shutdown the computer, you have to type in "shutdown -h now ". What a long command again! "bye" alias make you good bye easily, and you can update your computer before leaving.
No comments:
Post a Comment