?
Solved

Finding executables in linux

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

Expert Comment

by:blkline
ID: 12438043
find /  -perm -1

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

Accepted Solution

by:
Karl Heinz Kremer earned 500 total points
ID: 12438537
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
ID: 12438639
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

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to demonstrate how we can use conditional statements using Python.
Fine Tune your automatic Updates for Ubuntu / Debian
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses

601 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