Category Archives: cli

Change the color of your Linux prompt

You can change the color of your BASH prompt to red with this command: export PS1=”\e[0;31m[\u@\h \W]\$ \e[m” To make the change permanent, create a .bash_profile in your home directory (if one isn’t already present): touch ~/.bash_profile and paste the line directly into the file. Save and close. For other colors please see the attached… Read More »

Set the clock from the Linux command line

If you want to set the date from the Linux command line, you can use the date command: sudo date nnddhhmmyy where nn is the monthdd is the dayhh is the hourmm is the minuteyy is the year For example, date 080717292009 would set the date to August the 7th, 17:29, 2009.