|
|
How can I ftp a large file without getting a "file too large" error? |
| You may have a maximum filesize limit established by default. For example,
in Redhat Linux 6.x, the default maximum file size is 50MB. So if you try
to download a bigger file, it will stop at 50MB and give you
a "file too large" error (and probably something about a broken pipe).
You can see and change your filesize limit and other limits. The command will depend on the shell you use. If you use tcsh, then the "limit" command gives the info: ==> limit cputime unlimited filesize 50000 kbytes datasize unlimited stacksize 8192 kbytes coredumpsize 1000000 kbytes memoryuse unlimited descriptors 1024 memorylocked unlimited maxproc 256 openfiles 1024To change the filesize limit to 1GB, give the command ==> limit filesize 1000000(the number is the filesize in kbytes or kB). You can put this command in your .cshrc start-up file so that it takes effect in every shell. If you use bash, then the corresponding command is "ulimit -a" (the "-a" is for "all"). [furnstah@ntg4004 furnstah]$ ulimit -a core file size (blocks) 1000000 data seg size (kbytes) unlimited file size (blocks) 50000 max memory size (kbytes) unlimited stack size (kbytes) 8192 cpu time (seconds) unlimited max user processes 256 pipe size (512 bytes) 8 open files 1024 virtual memory (kbytes) 2105343To change the file size to 1GB, give the command [furnstah@ntg4004 furnstah]$ ulimit -f 1000000(the number is the filesize in kbytes or kB). You can put this command in one of your .bashrc start-up file so that it takes effect in every shell. 2000-Jan-25 11:26am furnstahl.1@osu.edu | |
| [Append to This Answer] | |
| 2000-Jan-25 11:26am |
| Previous: |
|
| Next: |
|
| ||||||||||