文件名字的构成(建议与规则)
1.文件名字应该有描述的意义
2.文件名只能包含字母和数字(文件名可以包含字母数字#_),文件名不要带空格,不能重复shell中字符,[]只有一个字符进行匹配
3.文件不要以+号或者以-号开头(有的以-号开头删不掉),在某些系统中-代表系统的特殊文件
4.不要与系统命令相同名
5.AIX的大小写敏感
6.以.开头的为隐藏字符
7.文件名最大为255个字符
原文
AIX File Names
1.Shoule be descriptive of the content
2.Should use only alphanumeric characters - UPPERCASE,lowercase,number,#,@,_
3.Should not include imbedded blanks
4.Should not contain shell metacharacters : _*?></;&![]|$\'"()
5.Shoule not begin with "+" or "-" sign
6.Should not be the same as a system command
7.Are case-sensitvice
8.File names starting with a .(dot)are hidden from the normal ls command
9.The maximum number of characters for a file name is 255
本文详细阐述了文件命名的最佳实践,包括使用描述性名称、遵循特定字符限制、避免使用系统保留字符、确保名称的唯一性及正确性,以及了解不同操作系统对文件命名的差异性。此外,还提供了关于隐藏文件、大小写敏感性和命令冲突的重要注意事项。
91

被折叠的 条评论
为什么被折叠?



