Date: Fri, 27 Jan 2006 16:46:26 -0800 (PST) From: Philip Hallstrom <freebsd@philip.pjkh.com> To: "FlashWebHost.com" <flashweb@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: rm - Argument list too long Message-ID: <20060127164522.T23397@wolf.pjkh.com> In-Reply-To: <927ad6550601271534r17a6ddb2jd90b930f744d170f@mail.gmail.com> References: <927ad6550601271534r17a6ddb2jd90b930f744d170f@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> I am getting error "Argument list too long." when deleting files from > /tmp directory. > > ------------------------------------ > server20# pwd > /tmp > server20# ls -l sess* > /bin/ls: Argument list too long. > server20# rm -f sess* > /bin/rm: Argument list too long. > server20# > ------------------------------------ > > Any idea how to correct this ? find /tmp -type f -name 'sess*' -delete Probably worth adding a "-mtime +1" in there to only delete files that haven't been modified in 1 day... -philip
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060127164522.T23397>