There are a couple of ways I can think of by which this could happen:
1) If you have reached the maximum number of sub-directories in a directory (typically around 32000), you will not be able to mkdir
, but you will be able to touch
a file.
2) If you are very low on disk space, you will not be able to mkdir
because it requires 4K, but you will be able to touch
a file.