O'Reilly logo

Korn Shell: Unix and Linux Programming Manual, Third Edition, The by Anatole Olczak

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The ulimit Command

The ulimit command manipulates system resource limits for current and child processes using the following format:

					ulimit [options] 

or

					ulimit [options] n
				

where n indicates to set a resource limit to n (except with the –a option). If n is not given, the specified resource limit is displayed. If no option is given, the default –f (file size limit) is used. Here, all the current resource limits are displayed:

					$ ulimit —a
					time(seconds)    unlimited
					memory(kbytes)   unlimited
					data(kbytes)     4294901761
					stack(kbytes)    2048
					file(blocks)     unlimited
					coredump(blocks) unlimited
				

This command sets the core dump size limit to 500 blocks:

					$ ulimit —c 500
				

To disable generation of core dumps, the dump size should be set to 0 blocks:

					$ ulimit ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required