list of directories
What is the name of a file that lists all the directory and files in the Linux?
And where is it located? |
greg108,
are you searching for dir in DOS lookalike? Well if you are, it's ls and it's located in /usr/bin/ls (if not there, then in /bin/ls). |
|
Ok, so 'ls' lists files and directories.
But is there somewhere a file that stores all the tree or something like that? In other words, what happens when you run 'ls' command? Where and how does the 'ls' command look for the information? Where is the information stored? |
AFAIK the filesystem is represented as a linked list (or similar) of inodes which the command would find the correct point and then loop through the structure.
kezz |
I am not discouraging the continuing of this question, by all means, ask away. But just an FYI:
From a newbies perspective, that really shouldn't matter at all. If you are programming, or if you are simply THAT hard corps, go for it. But don't overwhelm yourself with info like that if you are just learning linux, there's much more stuff that where 'ls' comes from ;) Cool |
All times are GMT -5. The time now is 04:36 PM. |