Monday 8 February 2016

15 Interview Questions on Linux “ls” Command – Part 1


RedHat RHCSA and RHCE Certification Exam Study Ebook ($25)Get This Book   

15 Interview Questions on Linux “ls” Command – Part 1

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
Avishek Kumar
I am a major in computer science, love to research nix. I love to write codes and scripts, review distros, experiment Foss Technologies, write technical articles, Hack, of course Ethically. I am working as System Administrator (nix) for a NGO.
Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.
Receive Your Free Complimentary eBook NOW! - Can You Run It On Linux? 10 Vital Apps You Will Want When You Switch

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

20 RESPONSES

  1. adri
    I like this site my acknowledgement increased.
  2. John Galt
    Question 14 is either pointless or the answer and question is wrong. Maybe the English was wrong on the question and the answer was totally wrong.
    ls -d will always display ‘.’ because the current directory is always ‘.’
    -d needs something after it to be useful. If the question was “List the directories but not the files in the current directory.” then the answer would be ls -d */
    • Avishek Kumar
      @ John, you reached the conclusion too soon.
      The Question was to list directory entries themselves, not their contents and in all the condition the current directory is ‘.’ and hence is the output of ‘ls -d’ same in every Situation.
  3. Martin
    Hi!
    Thanks for that deep summary!
    But, concerning question 5: Doesn’t the “number 5” concern the HARD links to this filesystem object, instead of, as it is written here, the symbolic links?
    Regards! Martin
  4. Balkae Singh
    I am working as linux admin in IT company, Dear Avishek Kumar you need put some more commands and regarding shell scripting Q and commands, i have no clear LVM concept on Linux, is there any helpful links..?
    in last want to say ..you guys are doing very gud job and well done.
  5. Ravi
    Useful info !!! Thanks :)
  6. Mayank
    I learn new things in linux ls commands
    Thanks you very very much and be continue and share your wonderful knowledge
  7. Eddie G.
    AWESOME!….thank you SO much for this!….I’ve been trying to get a handle on the Command Line for a VERY LONG time!…LOL!…..I’m going to refer to this page CONSTANTLY! Please…..please…….PLEASE don’t EVER stop this page…or these tutorials!
    Cheers!
  8. Kountess Buggywhip
    Linux “ls” sorts the following files like so:
    .camera
    Creepy
    curmudgeon
    .danger
    DoogieHowser
    dragonpooh
    How to I get Linux “ls” to sort things the BSD way, like so:
    .camera
    .danger
    Creepy
    DoogieHowser
    curmudgeon
    dragonpooh
    I much prefer the BSD “ls” method of sorting, as it does not smack of DOS, the Linux “ls” does. How does one achieve *that*?
    • Avishek Kumar
      Dear Kountess Buggywhip,
      Being an author of this post, i should have responded you earlier. Your question is very genuine and interesting and i was busy researching a solution for your’s this question.
      Will let you know, as soon as i have done.

LEAVE A REPLY

2 comments:

  1. Hi There,

    Fully agree on Linux interview . We’re seeing a lot of projects tackle big complex problems but few seem to have taken into consideration and in particular reasons to adopt.

    Should I install Linux and if so what is the right one for gaming, coding and in generall, user friendly? Is it fast? Is it reliable? What distro should I use for the things I said above?
    Excellent tutorials - very easy to understand with all the details. I hope you will continue to provide more such tutorials.

    Many Thanks,
    Preethi.

    ReplyDelete
  2. Nice Post thanks for the information, good information & very helpful for others. For more information about Career Objective 4 Types of Career Objectives that kill your Resume Click here for more detail

    ReplyDelete