Killing the internet one fake blog post at a time.

Fedora Linux CheatSheet.

Written in

by

Here’s a cheatsheet for Fedora Linux:

System Management

  • sudo command – Run a command with elevated privileges
  • sudo su – Switch to the root user
  • dnf update – Update the package list
  • dnf upgrade – Upgrade installed packages
  • dnf install package – Install a package
  • dnf 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
  • 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

  • dnf search package – Search for a package
  • dnf info package – Display information about a package
  • dnf list --installed – List installed packages
  • dnf autoremove – Remove unused packages
  • dnf 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.

Tags