LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   list of directories (https://www.linuxquestions.org/questions/linux-newbie-8/list-of-directories-79960/)

greg108 08-07-2003 05:19 PM

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?

lfur 08-07-2003 05:22 PM

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

DrOzz 08-07-2003 10:26 PM

http://www.laynetworks.com/linux.htm

greg108 08-07-2003 11:45 PM

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?

kezz 08-08-2003 12:15 AM

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

MasterC 08-08-2003 03:11 AM

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.