Here’s a cheatsheet for Ubuntu Linux:
System Management
- sudo command– Run a command with elevated privileges
- sudo su– Switch to the root user
- sudo apt update– Update the package list
- sudo apt upgrade– Upgrade installed packages
- sudo apt install package– Install a package
- sudo apt remove package– Remove a package
File System Navigation
- ls– List files in the current directory
- cd directory– Change to a directory
- cd ..– Go up one directory
- mkdir directory– Create a new directory
- rm file– Remove a file
- rm -r directory– Remove a directory and its contents
Text Editing
- nano file.txt– Open a file for editing in the Nano text editor
- vim file.txt– Open a file for editing in the Vim text editor
Networking
- ping host– Send a ping to a host to test network connectivity
- ifconfig– Display network interface configuration
- ip addr– Display network interface configuration
- netstat– Display network connections and routing tables
- route– Display or modify the system’s routing table
- ssh user@host– Connect to a remote host via SSH
System Information
- uname -a– Display system information
- df -h– Display disk space usage
- free -m– Display memory usage
- top– Display real-time information about running processes
Package Management
- apt search package– Search for a package
- apt show package– Display information about a package
- apt list --installed– List installed packages
- apt autoremove– Remove unused packages
- dpkg -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.