Raspberry PI commands cheat sheet

Here is a list of some useful Raspberry Pi commands that you may find helpful as a cheat sheet:

  • sudo apt-get update: Update the list of available packages and their versions.
  • sudo apt-get upgrade: Upgrade installed packages to the latest version.
  • sudo raspi-config: Launch the Raspberry Pi configuration tool.
  • df -h: Show the available disk space on the system.
  • free -m: Show the available memory on the system.
  • top: Show the processes that are currently running on the system.
  • ps aux: Show all running processes and their resource usage.
  • shutdown -h now: Shut down the Raspberry Pi.
  • reboot: Restart the Raspberry Pi.
  • nano: Launch the Nano text editor.
  • cat: Display the contents of a file.
  • grep: Search for a specific string in a file.
  • chmod: Change the permissions of a file.

Here are top 50 Raspberry PI commonly used commands cheat sheet:

  1. ls โ€“ List the files in a directory
  2. cd โ€“ Change the current working directory
  3. pwd โ€“ Print the current working directory
  4. mkdir โ€“ Create a new directory
  5. rmdir โ€“ Remove an empty directory
  6. cp โ€“ Copy a file or directory
  7. mv โ€“ Move a file or directory
  8. rm โ€“ Remove a file
  9. man โ€“ Display the manual page for a command
  10. cat โ€“ Concatenate and display the contents of a file
  11. less โ€“ View the contents of a file one page at a time
  12. echo โ€“ Output a message or value
  13. grep โ€“ Search for a pattern in a file or stream
  14. find โ€“ Search for files matching a pattern
  15. sort โ€“ Sort the lines in a file or stream
  16. uniq โ€“ Remove duplicate lines from a file or stream
  17. wc โ€“ Count the number of lines, words, and bytes in a file
  18. chmod โ€“ Change the permissions of a file or directory
  19. chown โ€“ Change the owner of a file or directory
  20. echo $PATH โ€“ Display the directories in the search path
  21. echo $SHELL โ€“ Display the name of the current shell
  22. echo $USER โ€“ Display the current userโ€™s username
  23. echo $HOME โ€“ Display the current userโ€™s home directory
  24. echo $HOSTNAME โ€“ Display the current hostname
  25. date โ€“ Display the current date and time
  26. cal โ€“ Display a calendar
  27. uptime โ€“ Display the uptime of the system
  28. whoami โ€“ Display the current userโ€™s username
  29. id โ€“ Display information about the current user
  30. groups โ€“ Display the groups to which the current user belongs
  31. top โ€“ Display the top processes by CPU or memory usage
  32. ps โ€“ Display a list of processes
  33. kill โ€“ Terminate a process
  34. shutdown โ€“ Shut down or reboot the system
  35. reboot โ€“ Reboot the system
  36. init โ€“ Change the system runlevel
  37. dmesg โ€“ Display the system message buffer
  38. lsmod โ€“ List the currently loaded kernel modules
  39. modprobe โ€“ Add or remove a kernel module
  40. ifconfig โ€“ Configure a network interface
  41. ip โ€“ Display or manipulate network settings
  42. route โ€“ Display or manipulate the routing table
  43. ping โ€“ Test a network connection
  44. traceroute โ€“ Trace the route to a host
  45. telnet โ€“ Connect to a remote host using the Telnet protocol
  46. ssh โ€“ Connect to a remote host using the SSH protocol
  47. scp โ€“ Copy files between two hosts using the SSH protocol
  48. sftp โ€“ Transfer files between two hosts using the SFTP protocol
  49. ftp โ€“ Connect to a remote host using the FTP protocol
  50. wget โ€“ Download a file from the internet
  51. curl โ€“ Transfer data using various network protocols
  52. apt-get โ€“ Install, update, and manage packages

 

 


About The Author

Muhammad Bilal

I am highly skilled and motivated individual with a Master's degree in Computer Science. I have extensive experience in technical writing and a deep understanding of SEO practices.