Originally Posted by catkin
ls -1rt --group-directories-first | tail -1
(that's a number 1 in -1rt)
That misses all the files that have a depth greater than zero.
This version of that approach would get some penetration:
ls -1rt --group-directories-first * */* */*/* | tail -1
but then you need to know how deep the structure goes. Or substitute with:
ls -1rt --group-directories-first $(find . -type d | sed 's/[^/]/*/g' | tr -s '*' | sort | uniq) | tail -1
What's interesting is the 'ls' version (above) got a different answer than 'find -newer' (from post 6), but both files were created the same minute. So one of the two approaches looks at the seconds.