15 Basic ‘ls’ Command Examples in Linux

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Use our Linode referral link if you plan to buy VPS (it starts at only $10/month).
  4. Support us via PayPal donate - Make a Donation
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux course in 5 Days

We are thankful for your never ending support.

Ravi Saive

I am Ravi Saive, creator of TecMint. 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. Follow Me: Twitter, Facebook and Google+

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...

26 Responses

  1. Mark Goodell says:

    Thank you. Very helpful (Mark G)

  2. Evan says:

    What is the number(#) between permissions and owner?
    dr-xr-x– # OWNER GROUP SIZE DATE NAME

  3. See birth certificate says:

    thanks

  4. harikrishna says:

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

  5. 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.

  6. 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

  7. tricky says:

    Great job. I find this very resourceful. Thanks

  8. - Younis - says:

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

  9. krishna says:

    sir

    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.

Got something to say? Join the discussion.

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

Join Over 150K+ Linux Users
  1. 100,756
  2. 5,113
  3. 36,418

Enter your email to get latest Linux Howto's