file size limit?

hi,

how can I find out what the limit of a file size is on unix?

thanks

/usr/bin/ulimit
The ulimit utility sets or reports the file-size writing
limit imposed on files written by the shell and its child
processes (files of any size may be read). Only a process
with appropriate privileges can increase the limit.

Hope you are looking for it.

thanks & regards,
Sanjay

The limit is determine by the type of file system and other parameters. What file system type are you using?

ulimit specifies the number of open files.

As Frank Rizzo said, the maximum length of a file is determined by what data type of file pointer (32 bit or 64 bit) the filesystem supports.

The other controlling factor works on a per process basis - setrlimit() can change the max allowed filesize, see man setrlimit. The kernel imposed hard limit for filesize in setrlimit is something you can see from the command line with getconf or in C with fpathconf() & pathconf()

_LFS64_STDIO for linux means largefiles is supported by stdio.h routines - as an example.

You need to read thru unistd.h and limits.h to see what your system has.

Most modern unix flavors support largefiles - i.e., 64 bit off_t variables for file pointers.

man limits

thanks all

ulimit -a