分类: LINUX
2007-10-22 17:01:49
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.