Date: Tue, 7 Feb 2012 18:46:56 -0700 From: Modulok <modulok@gmail.com> To: =?KOI8-R?B?68/O2MvP1yDl18fFzsnK?= <kes-kes@yandex.ru> Cc: freebsd-questions@freebsd.org Subject: Re: 'rm' Can not delete files Message-ID: <CAN2%2BEpZqrfHcviOdx78jHdvg9gnWGcwR%2BVb-L=mzxnNpE8XanQ@mail.gmail.com> In-Reply-To: <1237723287.20120207235924@yandex.ru> References: <1237723287.20120207235924@yandex.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2/7/12, =EB=CF=CE=D8=CB=CF=D7 =E5=D7=C7=C5=CE=C9=CA <kes-kes@yandex.ru> = wrote: > # rm * > /bin/rm: Argument list too long. > > > in this directory about 25000 files, > but actually there is only one argument to rm it is '*' sign. > > Why rm get list of all files in directore instead of deleting one by one? If you're removing everything, can you just remove the directory and re-cre= ate it? e.g: cd .. rm -rf foo mkdir foo -Modulok-
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAN2%2BEpZqrfHcviOdx78jHdvg9gnWGcwR%2BVb-L=mzxnNpE8XanQ>