May 8, 2024
cron # References # ArchWiki - cron Crontab - Quck Reference crontab guru - “The quick and simple editor for cron schedule expressions…” Cron cheatsheet Monitoring cronjobs # Monitoring cronjobs with Prometheus …
Monitor cron jobs with Prometheus, Grafana and Node exporter - Example use-case that pipes cronjob status to a Bash script that then writes to a Prometheus textfile collector.
...
April 18, 2024
GRUB2 # GNU GRUB GRUB2 GRand Unified Bootloader version 2
May 25, 2022
RPM Package Manager # rpm
Querying packages # Query Options Description -q (--query) Queries and displays packages -qa (--query --all) Lists all installed packages -qc (--query --configfiles) Lists configuration files in a package -qd (--query --docfiles) Lists documentation files in a package -qf (--query --file) Exhibits what package a file comes from -qi (--query --info) Shows installed package information -qip (--query --info --package) Shows installable package information -ql (--query --list) Lists all files in a package -qR (--query --requires) Lists files and packages a package depends on (requires) -q --whatprovides Lists packages that provide the specified package or file -q --whatrequires Lists packages that require the specified package or file Package management # Install/Remove Options Description -e (--erase) Removes a package --force Installs and replaces a package or files of the same version -F (--freshen) Upgrades an installed package -h (--hash) Shows installation progress with hash marks -i (--install) Installs a package --import Imports a public key -K Validates the signature and package integrity -U (--upgrade) Upgrades an installed package or loads it if it is not already installed -v (--verbose) or -vv Displays detailed information -V (--verify) Verifies the integrity of a package or package files Manually extract files from a package # rpm2cpio (8) - Extract cpio archive from RPM Package Manager (RPM) package.
...
May 25, 2022
Software # 20220525072458-rpm Look for software on my path:
which gcc Find files quickly from precompiled index of filesystem:
locate signal.h Package Management # Query for presence of package on Red Hat:
rpm -q python Find what package a file belongs to:
# Red Hat rpm -qf /etc/httpd # FreeBSD pkg which /usr/local/sbin/httpd # Ubuntu dpkg-query -S /etc/apache2 Installing packages # # Debian sudo apt install tcpdump sudo apt-get install tcpdump # Red Hat sudo yum install tcpdump sudo dnf install tcpdump # FreeBSD sudo pkg install -y tcpdump Building from Source # STUB
...
August 28, 2021
Index # All of my notes can now be found on my github .
Search by tag .
Computer Science # Development # Programming Editors Markup Documentation Strategies System Administration # Linux Networking Security Servers Data DevOps # Automation Personal Development # Learning Career Finance Mental Health Fitness Productivity Architecture # Architecture Home # Office Aesthetics Furniture Materials Music # Music Environment # Climate Change Sustainability Clean Energy Work # Notes Playbooks Training Wiki Pipeline Miscellaneous # Automotive
November 11, 2020
Secure Shell (SSH) # Allows a terminal or client to connect to a host terminal with data encrypted as it traverses the network.
Protocol: TCP Port: 22 Replaced telnet SSH servers use public-key cryptography and challenge-response authentication . Process: # Server sends public key to client After the client receives the key, it creates a session ID and encrypts it with the public key. The server decrypts the session ID and uses it in all data transfers going forward.
...
apt #
Notes # Linux CLI Linux Utilities and Bash Builtins Bash Scripting Resources # Books # The Linux Command Line Linux Command Line and Shell Scripting Bible Websites # The Art of Command Line * Bash Hackers Wiki * Scripting Strict mode * For writing better shell scripts Shell Style Guide ShellCheck A script analysis tool.
...
Wildcards # Wildcards (aka Globbing or Globs) can be expanded by bash to match any of the following:
Wildcard Meaning * Matches any characters ? Matches any single character [characters] Matches any character that is a member of the set characters [!characters] Matches any character that is not a member of the set characters [:class:] Matches any character that is a member of the specified class [:alnum:] matches any alphanumeric character [:alpha:] Matches any alphabetic character [:digit:] Matches any numeral [:lower:] Matches any lowercase letter [:upper:] Matches any uppercase letter Arithmetic Expansion # $((expression))
...
dnf # Query repos and rpm db # List repositories verbosely:
dnf repolist -v List all available packages from all repos:
dnf repoquery List all installed packages:
dnf list installed List all installed packages and packages available for installation:
dnf list List all available updates:
dnf list updates Install packages # Install a package:
dnf install package Install a package from an RPM:
dnf localinstall /path/to/rpm Update a package:
...