[svlug] a way to remove executables from the /tmp directory
Jerry M. Howell II
jmhowell at jmhowell.com
Fri Jul 15 19:40:22 PDT 2005
On Fri, Jul 15, 2005 at 06:05:49PM -0700, Karsten M. Self wrote:
> man find:
>
> -perm mode
> File's permission bits are exactly mode (octal or symbolic).
> Symbolic modes use mode 0 as a point of departure.
>
> -perm -mode
> All of the permission bits mode are set for the file.
>
> -perm +mode
> Any of the permission bits mode are set for the file.
>
> Peace.
>
Thank you,
I remember another command that listed executable files with the -x option
but this works beter. Just incase it helps anyone I used the following and
it seemes to do the trick
find /tmp -type f -perm +111 -ls
Now all I need to do is make a shell script for it :)
- Jerry
More information about the svlug
mailing list