Comparison of file and directory name on different operating systems

From LemonWiki共筆
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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 icon_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