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:
ls
โ List the files in a directorycd
โ Change the current working directorypwd
โ Print the current working directorymkdir
โ Create a new directoryrmdir
โ Remove an empty directorycp
โ Copy a file or directorymv
โ Move a file or directoryrm
โ Remove a fileman
โ Display the manual page for a commandcat
โ Concatenate and display the contents of a fileless
โ View the contents of a file one page at a timeecho
โ Output a message or valuegrep
โ Search for a pattern in a file or streamfind
โ Search for files matching a patternsort
โ Sort the lines in a file or streamuniq
โ Remove duplicate lines from a file or streamwc
โ Count the number of lines, words, and bytes in a filechmod
โ Change the permissions of a file or directorychown
โ Change the owner of a file or directoryecho $PATH
โ Display the directories in the search pathecho $SHELL
โ Display the name of the current shellecho $USER
โ Display the current userโs usernameecho $HOME
โ Display the current userโs home directoryecho $HOSTNAME
โ Display the current hostnamedate
โ Display the current date and timecal
โ Display a calendaruptime
โ Display the uptime of the systemwhoami
โ Display the current userโs usernameid
โ Display information about the current usergroups
โ Display the groups to which the current user belongstop
โ Display the top processes by CPU or memory usageps
โ Display a list of processeskill
โ Terminate a processshutdown
โ Shut down or reboot the systemreboot
โ Reboot the systeminit
โ Change the system runleveldmesg
โ Display the system message bufferlsmod
โ List the currently loaded kernel modulesmodprobe
โ Add or remove a kernel moduleifconfig
โ Configure a network interfaceip
โ Display or manipulate network settingsroute
โ Display or manipulate the routing tableping
โ Test a network connectiontraceroute
โ Trace the route to a hosttelnet
โ Connect to a remote host using the Telnet protocolssh
โ Connect to a remote host using the SSH protocolscp
โ Copy files between two hosts using the SSH protocolsftp
โ Transfer files between two hosts using the SFTP protocolftp
โ Connect to a remote host using the FTP protocolwget
โ Download a file from the internetcurl
โ Transfer data using various network protocolsapt-get
โ Install, update, and manage packages