How can I avoid core files if my program crashes#

Core files can be very helpful when debugging a problem but they also take a long time to get written for large parallel programs. The following command will limit the core size to zero, i.e. no core files will be written:

ulimit -c 0             # for bash/ksh
limit stacksize 0  #for tcsh/csh

The effect of the above command call can be checked with:

ulimit -c             # for bash/ksh
limit stacksize  #for tcsh/csh

Please, note that the command name and syntax are specific to a shell used.