Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 08-03-2004, 02:00 AM   #1
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:
|-- 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
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
Senior Member
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: OpenBSD, Debian, FreeBSD
Posts: 1,450

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

Old 08-04-2004, 07:15 AM   #4
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.


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 > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:53 AM.

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