10 Useful ‘ls’ Command Interview Questions – Part 2

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. Get your own self-hosted blog with a Free Domain at ($3.45/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

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.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

15 Responses

  1. Sampad says:

    Started to learn unix a fwe days back. Your posts are helping a lot. I appreciate your work.

  2. Prabhat Gupta says:

    This is an excellent site. Well done every one. May God give all of you all the success.

    • Ravi Saive says:

      @Prabhat,

      Thanks for appreciating us and our work, we will continue to impress you all with our quality articles, stay tuned to Tecmint..

  3. Shahid says:

    Nice article

  4. kishore says:

    I am beginner..so this site very very helpful to me….thanx a lot

  5. John Galt says:

    Question 6 is either showing the wrong answer or the question doesn’t fully match the answer or maybe it was a problem translating the question to English.
    ls -R will display all files and directories recursively.
    ls -d */ will display only directories in the current directory.
    ls -d Pictures/*/ would display only directories in Pictures but not recursively.
    R and d can not be combined. Use “tree -d” or “find . -type d -print” instead.
    Another error in the same answer is that you imply that ls -Rm would list the directories separated by a comma. In reality only the files are comma separated.

  6. mercedes says:

    Thanks, us usual, great artiicle

  7. pch0317 says:

    On point “3. Well if switch (-h) output size in power of 1024, that is standard, What else power values are supported in ls command?” there is only one dash. I think it should be twice.

  8. Kiran Varma says:

    Very useful article thank you so much. I love tecmint :)

  9. Nice article! Haven’t used some of those flags!

  10. Naagabaabu says:

    very useful information about ls command. Thanks for sharing this info. Actually i’m newbie to Linux. You gave all the commands with clear example that helps me alot. Once again thank you….

Got something to say? Join the discussion.

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.