All posts for the month May, 2019

I have no idea how or why this started happening however my monitors would go black after 15 seconds of idle.  No power settings or screensavers were causing it, nor did I see any helpful logs to help troubleshoot.  However somewhere/how the Energy Star features of my monitor got enabled and literally after 15 seconds of idle time the monitors would go black..

Simple fix:


This fixed the issue not only for the current logged in session but also after a reboot.

$# : Number of arguments passed via script

$0 : Name of the script

$@ : Names of arguments passed to the script at execution

$$ : Process ID associated with script

$OSTYPE : What’s the OS type?

$TERM :  What’s term is being used?

$USER : What’s the username that executed the script?

$HOSTNAME : What’s the hostname of the box that ran the script?

$LOGNAME :  What was the login username?

$LINENO : Current line # of the script

$RANDOM : Random #

$BASH_SOURCE :  What’s the bash source?

Example script:





This will create a folder for each month 01-12.  Inside each month folder will be 30 or 31 folders for each day of the month except for Feb. which will have only 28.  This can be changed to 29 if it happens to be a leap-year.