Changes between Version 18 and Version 19 of FrequentQuestions/LinuxFu


Ignore:
Timestamp:
06/06/11 12:20:02 (14 years ago)
Author:
Brandon Shroyer
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • FrequentQuestions/LinuxFu

    v18 v19  
    7070== Command Aliasing ==
    7171
    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:
     72There 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:
    7573{{{
    7674alias <command>="<bash shell expression>"