Date: Thu, 3 Oct 2002 14:38:09 +0200 From: Roman Neuhauser <neuhauser@bellavista.cz> To: Jimmy Lantz <jimmy.lantz@lusidor.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: file naming rulesets/conventions/limitations Message-ID: <20021003123809.GO51897@freepuppy.bellavista.cz> In-Reply-To: <5.1.0.14.0.20021003132831.02f52e38@mail.lusidor.nu> References: <5.1.0.14.0.20021003132831.02f52e38@mail.lusidor.nu>
next in thread | previous in thread | raw e-mail | index | archive | help
# jimmy.lantz@lusidor.com / 2002-10-03 13:44:02 +0200: > Hi, > I wonder if there's any rulesets/conventions/limitations to filenames in= =20 > freebsd? > Limits to amount of chars used in filenames (I've heard 14 chars but I us= e=20 > more and havent had any problems) > What special chars ar allowed? (can I use @ in a filename for instance?= =20 > I've tested, it works, just want to know if it can give me some problems= =20 > later on...) the only illegal characters in filenames are slash and null (/, \0). filename length is limited to 256 characters. as for the path length limit: ISTR reading about 1024 characters, but that might not be FreeBSD. this seems to run as long as I leave it: roman@freepuppy ~/tmp 1050:0 > x=3Dx; i=3D0; while (( ++i > 0 )); do mk= dir $x || break; cd $x; done but different tools might have their own limits: roman@freepuppy ~/tmp 1053:0 > x=3Dx; i=3D0; while (( ++i > 0 )); do mk= dir $x || break; x=3D$x/x; done; echo $i=20 mkdir: x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/= x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x= /x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/= x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x= /x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/= x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x= /x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/= x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x= /x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/= x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x= /x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/= x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x= /x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/= x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x/x: File name to= o long 513 --=20 begin 666 nonexistent.vbs FreeBSD 4.7-RC 2:05PM up 15 days, 21:20, 19 users, load averages: 0.17, 0.21, 0.17 end To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021003123809.GO51897>