The following command works on Ubuntu (GNU findutils 4.4.2) but not on Fedora (4.2.27)
time find . -maxdepth 1 -type f -executable -print
How do I find executable files using older version of find?
|
The following command works on Ubuntu (GNU findutils 4.4.2) but not on Fedora (4.2.27)
How do I find executable files using older version of find? |
|||
|
|
From the man:
The EXAMPLES section has something where the |
||||
|
|
might be much slower, but also will look for things that are executables, but not necessarily permissioned as such. You may need to change what you grep for to improve accuracy (this would also match a file called "executable.jpg") narrow results (you may only be looking for a certain type of exe) and you might want to prettify the output later. Really would be useful to know why you are doing this in order to construct the best answer :) |
|||||
|