Linux – Filename Length Limits Explained limitslinux Are there any filename or path length limits on Linux? Best Answer See the Wikipedia page about file systems comparison, especially in column Maximum filename length. Here are some filename length limits in popular file systems: BTRFS 255 bytes exFAT 255 UTF-16 characters ext2 255 bytes ext3 255 bytes ext3cow 255 bytes ext4 255 bytes FAT32 8.3 (255 UCS-2 code units with VFAT LFNs) NTFS 255 characters XFS 255 bytes Related SolutionsLinux – Command line tool to normalize a filename Actually, it is realpath: http://linux.about.com/library/cmd/blcmdl3_realpath.htm There is also a command-line version: cyberciti.biz/faq/unix-linux-bsd-find-real-physical-path/ But on my CentOS 5 it is not available by default. Also there is a "cheating way": $ bash -c "cd /foo/../bar/ ; pwd" /bar Linux – the maximum username length on current GNU/Linux systems The current limit is 32 characters (according to useradd man page). Related TopicLinux : netstat listening queue lengthLinux – Monitor open files limits, etcFAT32 limit on total length of all filenames in a directory combinedLinux – How to apply memory limits to all cron jobs
Best Answer
See the Wikipedia page about file systems comparison, especially in column Maximum filename length.
Here are some filename length limits in popular file systems: