Here’s a cheatsheet for Fedora Linux:
System Management
sudo command
– Run a command with elevated privilegessudo su
– Switch to the root userdnf update
– Update the package listdnf upgrade
– Upgrade installed packagesdnf install package
– Install a packagednf 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 connectivityip 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
dnf search package
– Search for a packagednf info package
– Display information about a packagednf list --installed
– List installed packagesdnf autoremove
– Remove unused packagesdnf install package.rpm
– Install a package from a .rpm file
This is just a small selection of the many commands available in Fedora 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 Fedora, you’ll discover new commands and techniques that can help you work more efficiently and productively.