Solved

Finding executables in linux

Posted on 2004-10-28
1,616 Views
Last Modified: 2013-12-16
How can I find all executable files installed on my linux?
0
Question by:Rok Brnot
    3 Comments
     
    LVL 6

    Expert Comment

    by:blkline
    find /  -perm -1

    will give you a list of all files with the executable bit set.
    0
     
    LVL 44

    Accepted Solution

    by:
    This will only list files that have the execute bit set for the world, but you will not find files that e.g. are only executable by the owner and the group. If you want to list all files that can be executed by either the owner, group members, or the world, use this:

    find / -perm +0111

    0
     
    LVL 6

    Expert Comment

    by:blkline
    Yep -- my bad.  

    Oh, and this will only work if you are logged on as root or use sudo.  Otherwise you'll only get the executables for directories for which you have read permission.
    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone. Privacy Policy Terms of Use

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
    Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
    Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

    875 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now