Filenames in Unix
来源:互联网 发布:淘宝店个人转让流程 编辑:程序博客网 时间:2024/09/21 06:34
Unix is rather flexible regarding file names. A valid Unix filename can contain any character other than "/". Most systems allow filenames of up to 256 characters in length. The filenames motd, motd.new and motd.backup are all valid in Unix. You could also have filenames like motd_new.backup. Unix does not attach any special significance to characters like "." or "_" in filenames; they are treated just like any other character. However, use of these characters can make filenames more meaningful to users.
Many compilers and other Unix programs do impose some restrictions on filenames. For instance, the C++ compiler expects that filenames for your programs should end in .h or .cpp. Thus Lab1.foo is not a valid name for a RESOLVE/C++ main program file, but Lab1.cpp is.
The same rules that apply to filenames also apply to directory names.
Important Note: The Unix system treats a directory as a special kind of file whose contents are the list of files and subdirectories within it. As a result, you'll notice that many of the rules that apply to files also apply to directories.
- Filenames in Unix
- Unix/Linux — find & xargs — Spaces in filenames
- 文件(夹)名避免使用的字符 Characters to Avoid in Directories and Filenames
- How to Manipulate Filenames Having Spaces and Special Characters in Linux
- find command in Unix
- Advanced programming in Unix
- C++ Primer in UNIX
- pdf creation in unix
- Trap in Unix
- vim in unix
- find command in UNIX
- How to change the filenames queque to new filenames
- Slicing filenames based on extension
- itkGDCMSeriesFileNames how to read filenames
- OpenFileDialog的FileName和FileNames
- Dynamic log fileNames with log4net
- Learn UNIX in 10 minutes
- Learn UNIX in 10 minutes
- asp.net经验代码
- Java中throws和throw的区别
- HttpClient+Jericho HTML Parser 实现网页的抓取
- [C++再学习系列] typename和依赖类型
- 发布h.264 main profile全规格高性能x86平台解码库
- Filenames in Unix
- J2EE在Oracle中存取BLOB对象实现文件的上传和下载
- Struts1:options和optionsCollection的使用及区别
- 更新源
- 随机出不重复的数字(不用随机出然后进行比较 JAVA实现)
- 竞价助手3.3rc1发布
- struts开发实践—实用小贴士
- 用gcc编译c++
- 不哭,是因为更懂你。。。。。。。