LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Is this a standard notation in inux? (https://www.linuxquestions.org/questions/linux-general-1/is-this-a-standard-notation-in-inux-212787/)

ray5_83 08-03-2004 02:00 AM

Is this a standard notation in inux?
 
Hi, I just new to Linux. I had an exercise that look like this:
w0000123/
|-- alpha/
| |-- case1
| -- program.c
|-- bin/
| |-- X
| | -- xword
| -- word2pdf
|-- mail
|-- src
-- test/
-- text
The exercise requires me to make a file system based on this, but i not sure bout the notation " ' " used.
For me |-- shows the file or directory inside a directory, while '-- is the last file or directory in listing of that directory level.
So, for instance, alpha is a directory in w0000123, case1 and program.c are files in alpha directory.
However, in the bin directory, there is a 'X', is it a file or directory?

Goala 08-03-2004 02:08 AM

I agree with you.

And it looks "X" should be a directory with xword file inside it, but then it should be named X/ not X.... Although src seems to be a directory but it doesn't have the / at the end....

frob23 08-03-2004 10:56 AM

I would say that anything with a | represents a directory and the ' represents a file. Note: this is my way of interperting how what structure would be resolved, I did have to guess a couple of times as to the real meaning -- it was not very clear. I have seen worse (The v7 version of mkfs comes to mind) but even they were less ambiguous.

/alpha/case1/program.c
/bin/X/xword
/bin/word2pdf
/mail/
/src/test/text

ray5_83 08-04-2004 07:15 AM

Thanks for ur feedback.
But some how i still need more opinions and hope more post will be posted here.


All times are GMT -5. The time now is 09:49 PM.