ack ack - 7 months ago 52
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.