Productivity
Coding
Video and graphics
System and file repair
sudo fsck -f /dev/sdXNsudo dnf distro-syncsudo rpm --rebuilddbsudo kill -9 $(pgrep program)
fsck must run on an unmounted partition, never on the active root filesystem while the system is running.
Network and connectivity
sudo resolvectl flush-cachessudo systemctl restart NetworkManagerping google.com
System information
hostnamectlsudo dmidecode -s system-serial-number
Advanced tools
sudo dnf autoremove && sudo dnf clean allsudo dnf offline-upgrade cleansudo systemctl restart dnf5daemon-serversudo pkcon refresh forcesudo reboot
Application administration
Clear terminal history
cat /dev/null > ~/.bash_history && history -c && exit
Clear GNOME Software and DNF caches
flatpak uninstall --unusedflatpak repairflatpak update --appstreamflatpak pin --remove <runtime-id>flatpak pinsudo rm -rf /var/cache/PackageKit/*rm -rf ~/.cache/*rm -fr ~/.cache/gnome-softwaresudo rm -fr /var/cache/dnf/*sudo dnf makecachesudo pkcon refresh forcesudo dnf upgrade --refreshsudo dnf updatesudo dnf upgrade --best --allowerasingflatpak update -ysudo dnf upgrade --refresh && flatpak update -y
Clearing cache folders forces some apps to rebuild indexes or thumbnails on next launch. This is not harmful to data, only slightly slower on first use.
Firewall
Fedora uses firewalld by default.
sudo firewall-cmd --statesudo firewall-cmd --add-service=http --permanentsudo firewall-cmd --reloadsudo firewall-cmd --list-all
Copying files via terminal
cp file.txt ~/Backup/rsync -av Source/ Destination/scp file.txt user@host:/path/
Disk usage and storage
df -hfor total and free space per filesystemdu -sh *to see folder sizes in the current directory
Scheduled tasks
crontab -efor traditional cron-style schedulingsystemctl list-timersto view active systemd timers
Compression and archiving
zip -r archive.zip folder/andunzip archive.ziptar -czvf archive.tar.gz folder/andtar -xzvf archive.tar.gz
