Book Image

Troubleshooting Ubuntu Server

By : Skanda Bhargav
Book Image

Troubleshooting Ubuntu Server

By: Skanda Bhargav

Overview of this book

Table of Contents (16 chapters)
Troubleshooting Ubuntu Server
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Index

Optimizing the shell


By default, Ubuntu configures the root and the first user created to the bash shell. This is the traditional shell. Any users created from this shell will also be given the same bash shell. We will discuss the configuration files and commands related to the bash shell. The system-wide settings files can be located in the folder /etc. Some of the most important ones are bash.bashrc, bash_completion, profile, and scripts stored in the /etc/bash_completion.d folder:

The same files are supplemented and you can override them as hidden files in each users' home directory. The files are .bashrc, .bash_history, .bash_logout, and .profile, as shown in the following screenshot:

Bash profiles

We will look at the two files that are the configuration files for the bash shell. They are stored in /etc and named bash.bashrc and profile.

The /etc/bash.bashrc file

Ubuntu uses the /etc/bash.bashrc file for aliases and functions throughout the system. You can open the file and view the contents...