tutorials:bash
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| tutorials:bash [2012/06/15 00:49] – chkuo | tutorials:bash [2012/11/23 13:59] (current) – [.bashrc (Ubuntu)] hsu | ||
|---|---|---|---|
| Line 33: | Line 33: | ||
| alias ll='ls -alFG | more' | alias ll='ls -alFG | more' | ||
| </ | </ | ||
| + | |||
| + | |||
| + | # under home directory, | ||
| + | mv .bashrc .bashrc_v2 | ||
| + | # create anyother .bashrc file and paste the below script into it. | ||
| + | nano .bashrc | ||
| ==== .bashrc (Ubuntu) ==== | ==== .bashrc (Ubuntu) ==== | ||
| Line 43: | Line 49: | ||
| # User specific environment and startup programs | # User specific environment and startup programs | ||
| export PATH=" | export PATH=" | ||
| + | export PERL5LIB=" | ||
| # enable color support of ls and also add handy aliases | # enable color support of ls and also add handy aliases | ||
| Line 55: | Line 62: | ||
| alias egrep=' | alias egrep=' | ||
| fi | fi | ||
| + | |||
| + | # some more ls aliases | ||
| + | alias l='ls -lF' | ||
| + | alias ll='ls -alF' | ||
| + | alias lm='ls -alF | more' | ||
| # shell command alias | # shell command alias | ||
| Line 60: | Line 72: | ||
| alias ..='cd ..' | alias ..='cd ..' | ||
| alias cd..=' | alias cd..=' | ||
| - | alias l='ls -lF' | + | |
| - | alias lm='ls -lF | more' | + | # short cut |
| - | alias ll='ls -alF | more' | + | alias pls='cd ~/plscript/' |
| + | alias sc='cd / | ||
| + | |||
| + | # ssh alias for connecting to other machines | ||
| + | # Academia Sinica | ||
| + | # hickory | ||
| + | export HICKORY='140.109.56.179' | ||
| + | alias hickory=' | ||
| </ | </ | ||
tutorials/bash.1339692578.txt.gz · Last modified: by chkuo