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