HowTo: Clear BASH History

Sometimes you don’t want to leave Bash history, because it may contain some sensitive data like passwords. This article may help you to control your Bash history file. Clear Bash history completely Type the following command to clear all your Bash history: $ history -cw Option Description -c Clear the history list -w Write out […]

Bash Colors

You can make your BASH script more pretty, by colorizing its output. Use ANSI escape sequences to set text properties like foreground and background colors. Colorizing Shell Use the following template for writing colored text: echo -e “\e[COLORmSample Text\e[0m” Option Description -e Enable interpretation of backslash escapes \e[ Begin the color modifications COLORm Color Code […]