how ls command works internally in linux os?
how ls command works internally in linux os?
EmbLogic Research & Competency Development Labs
Phone: +91 9818467776, 8527567776, 9650467776
Email: info@emblogic.com
Copyright © EmbLogic Embedded Technologies Pvt. Ltd.
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
Actually, when ls command is executed then at that time which are the system calls are executed?
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.