Linux command to return most recent file in directory

1153210 pts.
Tags:
Linux
I need a Linux command (ASAP) that would allow me to return the most recent file in our directory. Can someone point me in the right direction? Thanks.
1

Answer Wiki

Thanks. We'll let you know when a new response is added.

If you do a web search with your question, you will get a list of many sites that have examples of what you want.

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • smpunix
    use ls -ltr
    15 pointsBadges:
    report
  • AjitK29
    ls -Art | tail -n 1
    

    Not very elegant, but it works.

    2,545 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: