Customize Bash Prompt with colours in Ubuntu

There are lot of people that simply like to customize the appearence of the terminal, is my case. When you use a terminal during a lot of time, it usually helps to have a prompt more visible than the default one.

Backup

First of all, you should make a backup of the configuration file in order to fall back in case it is necessary. The file is at the user $HOME, so first step is to go the directory.

cd ~
cp -p .bashrc .bashrc-backup

Adding the new configuration in .bashrc file

Now, is the moment to edit the file .bashrc and add the new configuration to have the customized prompt.

I am used to use the vi editor to modify the configuration.

vi .bashrc

Once open the file, you should go to the end of the file. The way to do it in vi is using the key combination “Shift+G”. Once the cursor is positioned at the end, start edit mode in vi using the “o” key. Add next configuration at the end of the file.

Continue reading Customize Bash Prompt with colours in Ubuntu

Customize our Linux terminal with screenFetch (Ubuntu, Debian, CentOS, Linux Mint…)

screenFetch is a software for GNU/Linx which shows information related to our Hardware and our Operating System, including the logo of the Linux Distro it is being used.

This is the info screenFetch shows:

  • User Name
  • Host Name
  • OS with Code Name
  • Installed Kernel Info
  • System Uptime
  • List of Installed Packages
  • bash Shell Version
  • System Resolution
  • DE (Desktop Environment)
  • WM (Window Manager)
  • WM Theme
  • GTK Theme
  • Icon Theme
  • Font
  • CPU
  • RAM Usage

Here some examples:

Continue reading Customize our Linux terminal with screenFetch (Ubuntu, Debian, CentOS, Linux Mint…)