In bash, you can use the ulimit command which controls settings relating to program execution like dump core. See the code below:
ulimit -c unlimited
If you want to specify the size of programs that dump cores, let’s say 52M you can implement with it the below command:
limit coredumpsize unlimited
Interested in Linux? Check out this Linux Certification by Intellipaat.