Category Archives: Tutorials

Colored Text Output in Linux Shell and Bash Scripts

This script is used in a lot of other scripts I produce over time, and it’s very handy for generating colored text output in the terminal. Example of usage Here’s an example of using the colors.sh script: #!/bin/bash source colors.sh echo “${fg_yellow}Yellow ${fg_reset}Normal ${fg_green}Green {$fg_reset}”; Download You can view or download the script here: https://invision-web.net/web/sources/colors.sh […]

Continue reading

The GIT Cheat Sheat

In this article, I’ll be enlisting some of the most common git commands I use when working on software projects. # configure the environment and working user git config –global user.name “John Doe” git config –global user.email “john.doe@example.com” git config –global color.ui true # create the bare repository (for push/pull) repo=repository.git mkdir $repo && cd […]

Continue reading