📋 Cheat Sheet · Hua-Ming Huang
Download
My Profile Image
written by Hua-Ming Huang
February 21, 2026 1 minute read

Handy reference to quickly access terminal commands that I frequently use.

Table of Contents
cheat-sheet

◻️ Git

  • Drop all stashed at once

    git stash clear
  • Show the files in the most recent stash

    git stash show
  • Drop the most recent stash

    git stash drop
  • List all stashes

    git stash list
  • Show the changes of the most recent stash

    git stash show -p

◻️ Raspberry Pi

  • Show IP address

    ifconfig wlan0 | grep ‘inet | awk ‘{print $2}’
  • Sync system clock

    sudo timedatectl set-ntp true && date
  • Check voltage

    vcgencmd get_throttled | grep -q throttled=0x50005 && echo “Low voltage detected! Please use official power supply.” || echo “Power requirement satisfied.”

◻️ SSH

  • Print the public SSH key, which can be used for authentication on remote servers

    cat ~/.ssh/id_rsa.pub
  • Validate SSH

    ssh -T git@github.com
  • Generate SSH key

    ssh-keygen

◻️ Network Manager

  • Connect to a WiFi network

    nmcli dev wifi connect SSID password PASSWORD
  • Display a list of all saved network connections on the system

    nmcli con show
  • List all available Wi-Fi networks detected by the system

    nmcli dev wifi list
  • Show the status of all network interfaces, including their connection states

    nmcli dev status
Email Me
Thanks for reading! If you found this page useful, consider buying me a coffee
© 2026 Hua-Ming Huang · licensed under CC BY 4.0