Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Oct 2004 22:39:42 -0600 (CST)
From:      Ryan Thompson <ryan@sasknow.com>
To:        george <george@vagner.com>
Cc:        questions@freebsd.org
Subject:   Re: locate
Message-ID:  <20041030222922.Q4099@drizzle.sasknow.net>
In-Reply-To: <010201c4bef5$50a322b0$2100a8c0@laptop>
References:  <010201c4bef5$50a322b0$2100a8c0@laptop>

next in thread | previous in thread | raw e-mail | index | archive | help
george wrote to questions@freebsd.org:

> I am getting this error upon running periodic weekly it looks to me
> that there is a very long directory but I dont know a command to find
> this directory. can someone help?

# find / | awk '{ if (length >= 1024) print }'

It's linear on the number of inodes, but it should be accurate

> locate: integer out of +-MAXPATHLEN (1024): 1028

- Ryan

-- 
   Ryan Thompson <ryan@sasknow.com>

   SaskNow Technologies - http://www.sasknow.com
   901-1st Avenue North - Saskatoon, SK - S7K 1Y4

         Tel: 306-664-3600   Fax: 306-244-7037   Saskatoon
   Toll-Free: 877-727-5669     (877-SASKNOW)     North America



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