Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

These and other important nano operations are displayed in a menu at the bottom of the Terminal window. Note that the ^ character means Ctrl- in this menu.

Edit your login script

Whenever you login to a remote server, a login script located in your Home directory is executed. This file, usually your ~/.profile and/or ~/.bashrc file, has expressions that customize your shell environment. These customizations are temporary – they are in effect only during your login sessions, which is why they have to be re-established every time you login.

On our system, ~/.profile file is your login script. Use more ~/.profile to look at it.

Exercise 3-7

Use nano to remove the pound sign ( # ) comment character from one of the two lines starting with #export LS_COLORS

After you save the file and exit nano, use the exit command to end your current Terminal session. Then log back on to the GSAF pod server to see that the colors used by ls are changed without you having to change the LS_COLORS environment variable on the command line.