Here’s a cheatsheet for Ubuntu Linux:
System Management
sudo command
– Run a command with elevated privilegessudo su
– Switch to the root usersudo apt update
– Update the package listsudo apt upgrade
– Upgrade installed packagessudo apt install package
– Install a packagesudo apt remove package
– Remove a package
File System Navigation
ls
– List files in the current directorycd directory
– Change to a directorycd ..
– Go up one directorymkdir directory
– Create a new directoryrm file
– Remove a filerm -r directory
– Remove a directory and its contents
Text Editing
nano file.txt
– Open a file for editing in the Nano text editorvim file.txt
– Open a file for editing in the Vim text editor
Networking
ping host
– Send a ping to a host to test network connectivityifconfig
– Display network interface configurationip addr
– Display network interface configurationnetstat
– Display network connections and routing tablesroute
– Display or modify the system’s routing tablessh user@host
– Connect to a remote host via SSH
System Information
uname -a
– Display system informationdf -h
– Display disk space usagefree -m
– Display memory usagetop
– Display real-time information about running processes
Package Management
apt search package
– Search for a packageapt show package
– Display information about a packageapt list --installed
– List installed packagesapt autoremove
– Remove unused packagesdpkg -i package.deb
– Install a package from a .deb file
This is just a small selection of the many commands available in Ubuntu Linux. With these tools at your disposal, you can manage packages, navigate the file system, edit files, and much more. As you become more familiar with Ubuntu, you’ll discover new commands and techniques that can help you work more efficiently and productively.