ack ack - 3 months ago 11
Linux Question

Linux: Most recent file in a directory

Looking for a command that will return the single most recent file in a directory.

Not seeing a limit parameter to ls...

Answer
ls -Art | tail -n 1

Not very elegant, but it works.