EmbLogic's Blog

ls command

how ls command works internally in linux os?

3 Responses to ls command

  1. Manoj says:

    Each command is stored in one of the PAth… that u see by $PATH command.
    you can write your own script.. and put that in one of these paths..
    that script will work as a command

    • M.Siddarth says:

      Actually, when ls command is executed then at that time which are the system calls are executed?

      • pushpa says:

        view “strace ls” command to check what all system calls has been called due to ls command.It first exec the shell & then through multiple open read & mmap it fetches the information from the hard disk via system calls & provide the list back to user shell.

Leave a Reply to M.Siddarth Cancel reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>