Go · Golang

Center text in a terminal with Go.


This guide will show how simple it is to center text in a terminal or a text file using the Go standard and external libraries. We will create two functions, NCenter, which provides for a width parameter, and a Center func that will determine the center placement based on the width of the terminal screen.… Continue reading Center text in a terminal with Go.

Linux · Server

Way too slow sudo


I recently suffered an unusual issue in the Linux terminal. Any commands prefixed with sudo would take 10 to sometimes 15 seconds to execute, while all other bash and terminal commands would operate at speed. Initially, I thought the issue was related to a Ubuntu Server install running in VMware Fusion on a low powered… Continue reading Way too slow sudo