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>
index | next in thread | previous in thread | raw e-mail
# jimmy.lantz@lusidor.com / 2002-10-03 13:44:02 +0200:
> Hi,
> I wonder if there's any rulesets/conventions/limitations to filenames in
> freebsd?
> Limits to amount of chars used in filenames (I've heard 14 chars but I use
> more and havent had any problems)
> What special chars ar allowed? (can I use @ in a filename for instance?
> I've tested, it works, just want to know if it can give me some problems
> 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=x; i=0; while (( ++i > 0 )); do mkdir $x || break; cd $x; done
but different tools might have their own limits:
roman@freepuppy ~/tmp 1053:0 > x=x; i=0; while (( ++i > 0 )); do mkdir $x || break; x=$x/x; done; echo $i
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 too long
513
--
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
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021003123809.GO51897>
