How Do I run ulimit -c unlimited automatically
问题 I am trying to provide support for coredump file generation from my rootfs ,I have modified /etc/limits file with "ulimit -c unlimited" command and "* hard core -1" ,Now when I give kill -6 $$ ,expecting core file generation but to get this core file have to run ulimit -c unlimited explicitly . But I want it to happen automatically , no need to run ulimit -c unlimited it again in shell. Can anybody tell me what changes I have to make for the same to happen 回答1: From a program you can use