Skip to content

Instantly share code, notes, and snippets.

@valllllll2000
Last active November 19, 2023 22:03
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 valllllll2000/936265c66060d9f7725b34168a799628 to your computer and use it in GitHub Desktop.
Save valllllll2000/936265c66060d9f7725b34168a799628 to your computer and use it in GitHub Desktop.
raspberry pi useful commands
# display other devices on local network
sudo nmap -sn router_ip/24
arp -a
# list usb devices
lsusb
# disk space usage (human readable)
df -h
#list partitions
fdisk -l
#lists all partitions and allows to manage them
sudo parted -l
#clean after new install for ssh
ssh-keygen -f "/Users/valeria/.ssh/known_hosts" -R rpi_ip
# sd card test
sudo apt update
sudo apt install agnostics
sh /usr/share/agnostics/sdtest.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment