15 Basic ‘ls’ Command Examples in Linux

If you have any questions or problems regarding this article and want help within 24 Hours? Ask Now

Support TecMint: Did you find this tutorial helpful?. Please help to keep it alive by donating. Every cent counts! - Donate Now

Ravi Saive

Simple Word a Computer Geek and Linux Guru who loves to share tricks and tips on Internet. Most Of My Servers runs on Open Source Platform called Linux.

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

Receive Your Free Complimentary eBook NOW! -

Download Free Linux eBooks

Advanced Bash-Scripting Guide
Linux Bible
A Newbie's Getting Started Guide to Linux
Introduction to Linux - A Hands on Guide

You may also like...

24 Responses

  1. See birth certificate says:


  2. harikrishna says:

    every thing is fine sir ,but please show us the difference between accestime and modification time…….

  3. sawan says:

    Hello Sir,
    Can you please tell me from where can i get source code for these basic ls commands in C or Java.?
    please reply.

  4. star says:

    Hi I have a folders A and B and both were created on same day say day 1.

    On next day 2 day, I create another folder C.

    Now I make a sub folder “D” in A on day 5 and work on it creating new files for next 4 days.

    Now after day 9, when I do ls -lrt, I should expect A, C, B based on modifications time.

    I get the order C, B, A

    I don’t get folder A ( inside which the changes in subfolder D were made till day 9) but folder but folder C, B, A .

    Is there nay command that detects changes to sub folders and list it accordingly like ls -lrt

  5. tricky says:

    Great job. I find this very resourceful. Thanks

  6. - Younis - says:

    How to list directories from oldest to newest in /etc for example?

  7. krishna says:


    i have question about links?

    i wan to create link for one file with separate location

    but my intension is the both( original or link file) have same i node number?

    is it posible ? its posible which link i have to create that file?

    can you please explain sir.

Leave a Reply

Your email address will not be published. Required fields are marked *

Join Over 85000+ Linux Users
  1. 53,676
  2. 2,838
  3. 20,639

Enter your email to get latest Linux Howto's