LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 08-03-2004, 02:00 AM   #1
ray5_83
LQ Newbie
 
Registered: Jul 2004
Posts: 13

Rep: Reputation: 0
Question 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?
 
Old 08-03-2004, 02:08 AM   #2
Goala
Member
 
Registered: May 2004
Location: Merida (Spain)
Distribution: Debian
Posts: 89

Rep: Reputation: 15
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....

Last edited by Goala; 08-03-2004 at 02:25 AM.
 
Old 08-03-2004, 10:56 AM   #3
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: Ubuntu, FreeBSD, NetBSD
Posts: 1,449

Rep: Reputation: 47
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
 
Old 08-04-2004, 07:15 AM   #4
ray5_83
LQ Newbie
 
Registered: Jul 2004
Posts: 13

Original Poster
Rep: Reputation: 0
Thanks for ur feedback.
But some how i still need more opinions and hope more post will be posted here.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Run c++ executable as l inux system user? freakin'me Programming 7 10-09-2005 01:37 PM
pointer notation vs array notation? pablowablo Programming 5 03-14-2005 12:34 PM
Suse Inux 9.2 and ATI Fire GL4 leone76 Linux - Hardware 0 11-18-2004 09:18 AM
building l;inux from a script in windows bob_man_uk General 1 04-20-2004 05:21 PM
standard vs Expert install? Standard flubs up! Frost Linux - Software 1 03-27-2002 07:55 AM


All times are GMT -5. The time now is 07:55 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration