SYSADMIN NOTES

sysadmin notes open in nano
Plain text notes open in the Nano text editor

This is not about being organized [it is]. This is not about being professional [it is]. This is not about saving time [this too]. This is about capturing your work, ideas, curiosities, and useful things in a note or an article. Then refer back to it. This is the power of notes.

Different notes for different things. A 4" x 5" notepad by the TV for writing notes. A text file for computer notes. A web page for articles. Apple notes for travel lists, and minutiae.

The computer notes are stored in a text file. Use any text editor to edit the file [using nano here]. The bash function listed below is a shortcut to open or search the text file.

The notes can be viewed on the command line and on this web page [the page you are looking at now] https://worldsworstwriter.org/sysadmin/.

Sysadmin notes are in a text file called sysadmin.txt. To edit sysadmin.txt type the command sysadmin shown in the banner image. To search sysadmin.txt type sysadmin search string show here.

user@mba:~/sysadmin> sysadmin cert
# Lets Encrypt Certificates
sudo certbot certificates         # Letsencrypt certs
sudo certbot renew --dry-run      # Renew all certs
sudo certbot renew                # Renew all certs
certbot certonly --force-renew -d example.com #renew one cert

This is the sysadmin command bash script.

#!/bin/bash
sysadmin () 
{ 
    # Type sysadmin to edit the notes
    # Type sysadmin <string> to search the notes 
    if [ $# -eq 0 ]; then
        nano -w ~/www/writing/sysadmin/sysadmin.txt;
    else
        grep -i --color=auto  "$1" ~/www/writing/sysadmin/sysadmin.txt;
    fi 
}

The current sysadmin.txt file is listed here.


No Support?

dave@worldsworstwriter.org 2023-07-16