Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- If you want to add you own shortcuts (called alias) as available commands (could be your laptop or a server) just do the following :
- ```
- alias YOURALIAS='full command'
- ```
- **It usually goes to the .bashrc:**
- ```
- sudo nano .bashrc
- ```
- Here are some alias I use :
- ```
- # SSH
- # implies that you have set SSH keys for a direct connection
- # useful ! You won't have to enter your password each time you want to access to your remote server
- alias sshmysite='ssh mylogin@mysite.com'
- # browsing
- alias la='ls -alh --color=auto'
- alias ..='cd ..'
- alias ...='cd ../../../'
- alias ....='cd ../../../../'
- alias .....='cd ../../../../'
- alias .4='cd ../../../../'
- alias .5='cd ../../../../..'
- # upgrade & update
- alias allupdate='sudo apt-get update && sudo apt-get dist-upgrade'
- # tar
- # implies that you use .tar.gz files
- alias tarz="tar -cvfz"
- alias untarz=" tar -xvfz"
- # rm
- alias rmdir="rm -rf"
- # space check
- alias df='df -h'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement