My Linux cheatsheet
I have a text file with some of my favorite Bash commands and I thought I'd share them. Some are specific to CentOS/RHEL/Fedora but most are simple and useful. Feel free to comment if you can improve on any of them. Cheers.
Show all installed packages and order by size
Show all installed packages and order by date
Display RPM files then extract specific directories or files
rpm2cpio file.rpm | cpio -ivd ./etc/*
Install packages required for remote X (SSH X forwarding)
I use this one mostly for running Wireshark on Cygwin so I've also included wireshark.On CentOS 4:
Identify Eth device physically by blinking its LED
Watch a threads of a process
Check syntax of all PHP files in a directory
Check for updated packages and email the results
I set this up as a weekly cron job.- bash /
- centos /
- cheatsheet /
- Code /
- Linux FLOSS /
- shell /


