-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

Linux Command Line and Shell Scripting Techniques
By :

Now that we have learned about how to access the shell, let's configure it for our comfortable use. We're going to see a couple of examples so that we can understand how customizable the Linux shell is. Specifically, we're going to customize the look and feel of our prompt.
We just need to keep our virtual machines up and running.
We're going to edit a file called /home/student/.bashrc
. Before we do that, let's create a backup copy of the .bashrc
file, just in case we make some mistakes:
cp /home/student/.bashrc /home/student/.bashrc.tmp
Before we edit this file, make sure that you take note of how the prompt looks at this point. If you're logged in as student
to the cli1
machine, your prompt should look like this:
student@cli1:~$
Let's edit the .bashrc
file by using nano
. Type in the following command:
nano /home/student/.bashrc
When we type in this command...
Change the font size
Change margin width
Change background colour