Changes between Version 18 and Version 19 of FrequentQuestions/LinuxFu
- Timestamp:
- 06/06/11 12:20:02 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
FrequentQuestions/LinuxFu
v18 v19 70 70 == Command Aliasing == 71 71 72 In your home directory, {{{.bash_profile}}} executes when you open a terminal that requires a login (such as SSH), whereas {{{.bashrc}}} opens for a "non-login interactive shell", such as you might open in X with GNOME or KDE. In practice, {{{.bash_profile}}} will usually contain a line invoking {{{.bashrc}}}, so there's no effective difference. 73 74 There are several tricks with {{{.bashrc}}} to make your life easier. The first is the {{{alias}}} command, which maps complex shell-executable expressions to simpler commands using the form: 72 There are several tricks with {{{.bashrc}}} that you can use to make your life easier. The first is the {{{alias}}} command, which maps complex shell-executable expressions to simpler commands using the form: 75 73 {{{ 76 74 alias <command>="<bash shell expression>"