Chapter 6. Configuring Your Environment

  • Displaying environment variables with the printenv command

  • Customizing your login

  • Creating aliases

  • Using the linuxconf utility

The shell specified in your /etc/passwd entry runs after you log in to Linux. Your shell then loads several files located in different directories on your system. These files, called resource, profile, or login files, are located in your home directory and the /etc directory. For the default Linux shell, bash, these files include the following:

  • /etc/profile—Contains systemwide environment settings. This is the first file the shell looks for when you log in. This file sets environment variables such as the path for every user on the system.

  • .bash_profile, .bash_login, or .profile—These ...

Get Practical Linux now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.