Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Linux by (9.5k points)

How to tell a process in Linux which gets segmentation fault to generate a core dumb whenever it fails? 

1 Answer

0 votes
by (19.7k points)

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.  

Related questions

0 votes
1 answer
0 votes
1 answer
asked Nov 23, 2020 in Python by sabarish (200 points)
0 votes
1 answer

Browse Categories

...