LENTH=`for i in {1..255};do for x in a;do echo -n $x;done;done`
touch $LENTH
當增加到256時,touch報錯,F(xiàn)ile name too long
linux系統(tǒng)下ext3文件系統(tǒng)內(nèi)給文件/目錄命名,最長127個中文字符,英文支持255個字符
測試ext3文件系統(tǒng)下一級子目錄的個數(shù)限制
RHEL5U3_x64
# for i in {1..32000}; do mkdir $i; done
mkdir: cannot create directory `31999′: Too many links
mkdir: cannot create directory `32000′: Too many links
ext3文件系統(tǒng)一級子目錄的個數(shù)為31998 (個)。
Linux為了cpu的搜索效率規(guī)定的,要改變數(shù)目要重新編譯內(nèi)核.