Problem
While trying to create a large number of directories I get the error:
UX:mkdir: ERROR: Cannot create directory "dirname": Too many links
Cause
Each directory links itself to its parent directory. There is
a configurable kernel limit, MAXLINK, of the number of links to
any file. By default, the limit is 1000. Therefore, you can
create 998 subdirectories in any given directory. The other two
links are to the directories '.' and '..' which are the current
directory and the parent directory, respectively. Solution
This parameter can be increased to a maximum of 32767, allowing
32765 subdirectories to be created in any given directory. To
increase it, use the System Tuner tool on the Desktop or idtune(1M).MAXLINK is in the "Miscellaneous Parameters" section of the System Tuner.
NOTE: There is no limit on the number of files you can have in a directory.