Looking for a command that will return the single most recent file in a directory.
Not seeing a limit parameter to ls...
ls
try this simple command
ls -ltq | head -n 1
If you want file name - last modified, path = /ab/cd/*.log
If you want directory name - last modified, path = /ab/cd/*/