I was trying to generate a core file in Ubuntu 18.04. My program generates a core file, but I'm not able to find it.
$ ./a.out
Segmentation fault (core dumped)
$ ls -lrt
total 32
-rwxrwxrwx 1 sanjay sanjay 302 Mar 4 16:38 segmentation.cpp
-rwxrwxrwx 1 sanjay sanjay 28720 Mar 4 16:47 a.out