Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Sep 2002 21:15:13 -0300 (ART)
From:      Fernando Gleiser <fgleiser@cactus.fi.uba.ar>
To:        Peter Leftwich <Hostmaster@Video2Video.Com>
Cc:        FreeBSD LIST <FreeBSD-Questions@FreeBSD.Org>
Subject:   Re: how to find executable files
Message-ID:  <20020924211240.O59093-100000@cactus.fi.uba.ar>
In-Reply-To: <20020924191230.B66173-100000@earl-grey.cloud9.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 24 Sep 2002, Peter Leftwich wrote:

> Two questions, first is why doesn't this work, or is there a flag I can use
> with "ls?"
>
> # find . -type f -perm +x
> find: -perm: x: illegal mode string
> # find . -type f -perm +x -print
> find: -perm: x: illegal mode string

You need to use the octal mode:

# find . -type f -perm +100

for the files executable for their owner. man find for details.

>
> Question II: Is find always recursive (through subdirectories) or can this
> be limited to x levels down?  Thanks.

man find. look for the maxdepth and mindepth flags.


			Fer

>
> --
> Peter Leftwich
> President & Founder
> Video2Video Services
> Box 13692, La Jolla, CA, 92039 USA
> +1-413-403-9555
>
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
>


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020924211240.O59093-100000>