Re: 5000 Folders in a directory
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Thu, Feb 18, 2016 at 06:54:33AM -0200, SamuelOPH wrote:
> 2016-02-17 19:01 GMT-02:00 <tomas@tuxteam.de>:
>
> > tomas@rasputin:~/foo$ time ( for i in $(seq 0 4999) ; do touch $i ; done )
>
>
> I know its offtopic, but please don't use touch when you just wanna create
> files.
> use ">" instead
>
> Try a *$time ( for i in $(seq 0 4999) ; do > $i ; done )* and see the
> difference yourself.
(Please, reply to list, as this might interest others)
I think it's on-topic.
Actually I thought about that, and no, I think "touch" is the right thing
here, since the question was the behaviour of directories, and not that
of the whole file system machinery.
Still, a comparison would be interesting. Care to share some numbers?
regards
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iEYEARECAAYFAlbFhJcACgkQBcgs9XrR2kYiAQCePlWu4FX72tHc5fsOBa4c6/9Y
ZEoAoIHlIRxpjeDEN7AszcelrMjjMXNG
=VuTD
-----END PGP SIGNATURE-----
Reply to: