15 Basic ‘ls’ Command Examples in Linux

Download all articles in PDF format with our TecMint Content Subscription and Linux Support Services starting at $39 per month.

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

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

25 Responses

  1. Evan says:

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

  2. See birth certificate says:

    thanks

  3. harikrishna says:

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

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

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

  6. tricky says:

    Great job. I find this very resourceful. Thanks

  7. - Younis - says:

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

  8. 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 95000+ Linux Users
  1. 77,543
  2. 4,213
  3. 35,218

Enter your email to get latest Linux Howto's