Finding all the executables/binary in Linux rpm based distro.

2010-01-03 90 words 1 min read

I have been thinking about this for quite sometime now, how to find all the executables on the linux system. One of the way is to do a ”ls” on all the directories in the PATH variable. But that will not list the executables that are outside of the PATH. So, I wrote this one liner :

rpm -qal |agrep ”bin\/” > all_execs

This will list all the files in the Linux system in bin or sbin directory and that should be pretty much all the binaries in the system.


author

Authored By Amit Agarwal

Amit Agarwal, Linux and Photography are my hobbies.Creative Commons Attribution 4.0 International License.

We notice you're using an adblocker. If you like our webite please keep us running by whitelisting this site in your ad blocker. We’re serving quality, related ads only. Thank you!

I've whitelisted your website.

Not now
This website uses cookies to ensure you get the best experience on our website. Learn more Got it