Solved

Looking for a find command

Posted on 2002-03-21
2
232 Views
Last Modified: 2010-04-21
Hi, i'm trying to come up with a find command that will find all executables on the system and sort them by group and then by user

Here is what I have come up with:

find / -perm -0111  ! -type d -ls ! -print

Any help would be greatly appreciated.

0
Comment
Question by:thewing
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 40

Accepted Solution

by:
jlevie earned 100 total points
ID: 6885480
Use:

find / -perm -0111  ! -type d -ls | sort -k 5,6
0
 
LVL 38

Expert Comment

by:yuzh
ID: 6885493
Hi thewing,

   Try the following command:

    find . -perm a=rwx,g-w,o-w -type f -ls | sort -k 6

    This will sort it by group, and you can change whatever the permission you want.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.:

691 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