Difference between revisions of "Comparison of file and directory name on different operating systems"

From LemonWiki共筆
Jump to: navigation, search
 
Line 1: Line 1:
  
Windows [https://en.wikipedia.org/wiki/NTFS NTFS (New Technology File System)] on {{Win}}
+
{{Win}} Windows [https://en.wikipedia.org/wiki/NTFS NTFS (New Technology File System)]
 
* Maximum filename length: 255 characters<ref>[https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file#targetText=For%20example%2C%20the%20older%20MS,as%20an%208.3%20file%20name. Naming Files, Paths, and Namespaces - Windows applications | Microsoft Docs]</ref>
 
* Maximum filename length: 255 characters<ref>[https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file#targetText=For%20example%2C%20the%20older%20MS,as%20an%208.3%20file%20name. Naming Files, Paths, and Namespaces - Windows applications | Microsoft Docs]</ref>
 
* Maximum path characters:  
 
* Maximum path characters:  
 
* Case sensitive: allowed to be case sensitive after "Windows 10 April 2018 Update (version 1803)"<ref>[https://www.windowscentral.com/how-enable-ntfs-treat-folders-case-sensitive-windows-10 How to enable NTFS support to treat folders as case sensitive on Windows 10 | Windows Central]</ref>
 
* Case sensitive: allowed to be case sensitive after "Windows 10 April 2018 Update (version 1803)"<ref>[https://www.windowscentral.com/how-enable-ntfs-treat-folders-case-sensitive-windows-10 How to enable NTFS support to treat folders as case sensitive on Windows 10 | Windows Central]</ref>
  
macOS Mojave on {{Mac}}
+
{{Mac}} macOS Mojave
 
* Max. filename length: 255 characters<ref>[https://apple.stackexchange.com/questions/86611/does-os-x-enforce-a-maximum-filename-length-or-character-restriction macos - Does OS X enforce a maximum filename length or character restriction? - Ask Different]</ref><ref>[https://discussions.apple.com/thread/148395#targetText=Most%20parts%20of%20OS%20X,most%20cases%20means%201%2C024%20characters. Filename Character Limit? - Apple Community]</ref>
 
* Max. filename length: 255 characters<ref>[https://apple.stackexchange.com/questions/86611/does-os-x-enforce-a-maximum-filename-length-or-character-restriction macos - Does OS X enforce a maximum filename length or character restriction? - Ask Different]</ref><ref>[https://discussions.apple.com/thread/148395#targetText=Most%20parts%20of%20OS%20X,most%20cases%20means%201%2C024%20characters. Filename Character Limit? - Apple Community]</ref>
 
* Maximum path characters: 1024
 
* Maximum path characters: 1024
Line 17: Line 17:
  
  
Linux e.g. EX4
+
{{Linux}} e.g. EX4  
 
* Max. filename length: 255
 
* Max. filename length: 255
 
* Maximum path characters: 4096<ref>[https://unix.stackexchange.com/questions/32795/what-is-the-maximum-allowed-filename-and-folder-size-with-ecryptfs#targetText=Linux%20has%20a%20maximum%20filename,write%20data%20to%20the%20disk. What is the maximum allowed filename (and folder) size with eCryptfs? - Unix & Linux Stack Exchange]</ref>
 
* Maximum path characters: 4096<ref>[https://unix.stackexchange.com/questions/32795/what-is-the-maximum-allowed-filename-and-folder-size-with-ecryptfs#targetText=Linux%20has%20a%20maximum%20filename,write%20data%20to%20the%20disk. What is the maximum allowed filename (and folder) size with eCryptfs? - Unix & Linux Stack Exchange]</ref>

Latest revision as of 17:23, 13 October 2019

Win Os windows.png Windows NTFS (New Technology File System)

  • Maximum filename length: 255 characters[1]
  • Maximum path characters:
  • Case sensitive: allowed to be case sensitive after "Windows 10 April 2018 Update (version 1803)"[2]

Mac Os mac.png macOS Mojave

  • Max. filename length: 255 characters[3][4]
  • Maximum path characters: 1024
  • Case sensitive: yes
$ cc -dM -E -xc - <<< '#include <sys/syslimits.h>' | grep -i ' [NP]A.._MAX'

#define NAME_MAX 255
#define PATH_MAX 1024


Linux Os linux.png e.g. EX4

  • Max. filename length: 255
  • Maximum path characters: 4096[5]
  • Case sensitive: yes

References

Related articles