UNIX Cheat Sheet

Work in progress.

View disk space

df -H (diskfree human readable)

Get directory filesize

du -hs /path/to/directory

Nmap scan local network

nmap -sn 192.168.0.1/24

Check public IP

curl --ipv4 curlmyip.org

View DNS records

dig example.com
whois example.com

Send SMS with KDEConnect / GSConnect

kdeconnect-cli -n pixel --destination 5555555555 --send-sms "Text message"

Add user to group

Example: Add user to wireshark and direwolf groups

sudo usermod -a -G wireshark,direwolf $USER

Convert images

mogrify -format png *.tif

Tar cheat sheet

i.e:

tar -xvf a.tar.gz -C A/

Fedora

Reset gnome-software and packagekit

killall gnome-software && sudo systemctl restart packagekit

List packages by repository

List all packages installed by rpmfusion:

dnf list installed | grep @rpmfusion

HAM Radio

Decode GMSK/DStar audio with RTL-SDR

Install + configure ITPP, mbelib, dsd, etc.: https://www.george-smart.co.uk/scrapbook/digital_speech_decoder/

socat stdout udp-listen:7355 | dsd -fd -i - -w output.wav

May 22, 2025

Galen Asphaug