Comparison of Filename Limitations
System | Case sensitive |
Case preserving |
Allowed character set | Reserved characters | Reserved words | Maximum length | Comments |
---|---|---|---|---|---|---|---|
MS-DOS FAT | No | No | any 8-bit set | x00-x1F SPACE DEL " * / : < > ? \ | | Device names including: AUX COM1 … COM9 CON LPT1 … LPT9 NUL PRN | 11 | Maximum 8 character base name limit and 3 character extension; see 8.3 filename |
Windows VFAT | No | Yes | Unicode, using UTF-16 encoding | |\?*<":>+/ control characters | 255 | ||
NTFS | Optional | Yes | Unicode, using UTF-16 encoding | / null (i.e., 0x00) | Only in root directory: $AttrDef $BadClus $Bitmap $Boot $LogFile $MFT $MFTMirr pagefile.sys $Secure $UpCase $Volume $Extend $Extend\$ObjId $Extend\$Quota $Extend\$Reparse ($Extend is a directory) | 255 | forbids the use of characters in range 1-31 (0x01-0x1F) and characters " * : < > ? \ / | unless the name is flagged as being in the Posix namespace. NTFS allows each path component (directory or filename) to be 255 characters long.
Windows forbids the use of the MS-DOS device names AUX, CLOCK$, COM1, …, COM9, CON, LPT1, …, LPT9, NUL and PRN, as well as these names with any extension (for example, AUX.txt), except when using Long UNC paths (ex. \\.\C:\nul.txt or \\?\D:\aux\con). (CLOCK$ may be used if an extension is provided.) The Win32 API strips trailing space and period (full-stop) characters from filenames, except when UNC paths are used. These restrictions only apply to Windows; in Linux distributions that support NTFS, filenames are written using NTFS's Posix namespace, which allows any Unicode character except / and NUL. |
OS/2 HPFS | No | Yes | any 8-bit set | |\?*<":>/ | 254 | ||
Mac OS HFS | No | Yes | any 8-bit set | : | 255 | old versions of Finder are limited to 31 characters | |
Mac OS HFS+ | Optional | Yes | Unicode, using UTF-16 encoding | : on disk, in classic Mac OS, and at the Carbon layer in Mac OS X; / at the Unix layer in Mac OS X | 255 | Mac OS 8.1 - Mac OS X | |
most UNIX file systems | Yes | Yes | any 8-bit set | / null | 255 | a leading . indicates that ls and file managers will not show the file by default |
|
zOS | ? | ? | dab per Talk:AT&T#Incoming links to AT&T | other than $ # @ - x'C0' | 44 | first character must be alphabetic or national ($, #, @)
"Qualified" contains |
|
early UNIX (AT&T Corporation) | Yes | Yes | any 8-bit set | / | 14 | a leading . indicates a "hidden" file | |
POSIX "Fully portable filenames" | Yes | Yes | A–Z a–z 0–9 . _ - | / null | Filenames to avoid include: a.out, core, .profile, .history, .cshrc | 14 | hyphen must not be first character |
ISO 9660 | No | ? | A–Z 0–9 _ . | "close to 180"(Level 2) or 200(Level 3) | Used on CDs; 8 directory levels max (for Level 1, not level 2,3) | ||
AmigaOS | No | Yes | any 8-bit set | : / " | 107 | dos.library | |
Amiga OFS | No | Yes | any 8-bit set | : / " | 30 | Original File System 1985 | |
Amiga FFS | No | Yes | any 8-bit set | : / " | 30 | Fast File System 1988 | |
Amiga PFS | No | Yes | any 8-bit set | : / " | 255 | Professional File System 1993 | |
Amiga SFS | No | Yes | any 8-bit set | : / " | 32,000 | Smart File System 1998 | |
Amiga FFS2 | No | Yes | any 8-bit set | : / " | 107 | Fast File System 2 2002 | |
BeOS BFS | Yes | Yes | Unicode, using UTF-8 encoding | / | 255 | ||
DEC PDP-11 RT-11 | No | No | RADIX-50 | 6 + 3 | Flat filesystem with no subdirs. A full "file specification" includes device, filename and extension (file type) in the format: dev:filnam.ext. | ||
DEC VAX VMS | No | From v7.2 |
A–Z 0–9 $ - _ | 32 per component; earlier 9 per component; latterly, 255 for a filename and 32 for an extension. | a full "file specification" includes nodename, diskname, directory/ies, filename, extension and version in the format: OURNODE::MYDISK:FILENAME.EXTENSION;2 Directories can only go 8 levels deep. | ||
Commodore DOS | Yes | Yes | any 8-bit set | :, = | $ | 16 | length depends on the drive, usually 16 |
Read more about this topic: Filename
Famous quotes containing the words comparison of, comparison and/or limitations:
“We teach boys to be such men as we are. We do not teach them to aspire to be all they can. We do not give them a training as if we believed in their noble nature. We scarce educate their bodies. We do not train the eye and the hand. We exercise their understandings to the apprehension and comparison of some facts, to a skill in numbers, in words; we aim to make accountants, attorneys, engineers; but not to make able, earnest, great- hearted men.”
—Ralph Waldo Emerson (18031882)
“What is man in nature? A nothing in comparison with the infinite, an all in comparison with the nothinga mean between nothing and everything.”
—Blaise Pascal (16231662)
“That all may be so, but when I begin to exercise that power I am not conscious of the power, but only of the limitations imposed on me.”
—William Howard Taft (18571930)