Is it possible to get the file name of the most recently created one in a given directory? I wanted to use glob but I realized glob can't sort anything. Can I sort the files and then use glob to get the names? How do I do the first step of sorting files by time created?
By the way, I'm working on a centos 7 machine.