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 directory
cd– Change the current working directory
pwd– Print the current working directory
mkdir– Create a new directory
rmdir– Remove an empty directory
cp– Copy a file or directory
mv– Move a file or directory
rm– Remove a file
man– Display the manual page for a command
cat– Concatenate and display the contents of a file
less– View the contents of a file one page at a time
echo– Output a message or value
grep– Search for a pattern in a file or stream
find– Search for files matching a pattern
sort– Sort the lines in a file or stream
uniq– Remove duplicate lines from a file or stream
wc– Count the number of lines, words, and bytes in a file
chmod– Change the permissions of a file or directory
chown– Change the owner of a file or directory
echo $PATH– Display the directories in the search path
echo $SHELL– Display the name of the current shell
echo $USER– Display the current user's username
echo $HOME– Display the current user's home directory
echo $HOSTNAME– Display the current hostname
date– Display the current date and time
cal– Display a calendar
uptime– Display the uptime of the system
whoami– Display the current user's username
id– Display information about the current user
groups– Display the groups to which the current user belongs
top– Display the top processes by CPU or memory usage
ps– Display a list of processes
kill– Terminate a process
shutdown– Shut down or reboot the system
reboot– Reboot the system
init– Change the system runlevel
dmesg– Display the system message buffer
lsmod– List the currently loaded kernel modules
modprobe– Add or remove a kernel module
ifconfig– Configure a network interface
ip– Display or manipulate network settings
route– Display or manipulate the routing table
ping– Test a network connection
traceroute– Trace the route to a host
telnet– Connect to a remote host using the Telnet protocol
ssh– Connect to a remote host using the SSH protocol
scp– Copy files between two hosts using the SSH protocol
sftp– Transfer files between two hosts using the SFTP protocol
ftp– Connect to a remote host using the FTP protocol
wget– Download a file from the internet
curl– Transfer data using various network protocols
apt-get– Install, update, and manage packages