Skip to content

Instantly share code, notes, and snippets.

@joseywoermann
Last active November 14, 2021 19:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joseywoermann/46ee07d9a4566a0b93b612da9e8780f9 to your computer and use it in GitHub Desktop.
Save joseywoermann/46ee07d9a4566a0b93b612da9e8780f9 to your computer and use it in GitHub Desktop.
Useful Raspberry Pi commands

A collection of commands I find useful when working with Raspberry Pis. Some of these require external software.

Shows the uptime in a pretty format

uptime -p

Shows the SoC's temperature

sudo vcgencmd measure_temp

Raspberry Pi configuration interface

sudo raspi-config

Show system resource utilisation

top

Show free storage space

df -Bg

All running pm2 processes

pm2 list

Start a new process with a name.

pm2 start <file> --name <name>

Stop a process

pm2 stop <id / name>

Delete a process

pm2 delete <id / name>

Monitor all processes

pm2 monit

Activate a Python3 virtual environment

source venv/Script/activate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment