To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.off-topic.geekOpen lugnet.off-topic.geek in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Off-Topic / Geek / 517
516  |  518
Subject: 
Re: A UNIX directory/path question
Newsgroups: 
lugnet.off-topic.geek
Date: 
Fri, 17 Sep 1999 04:52:59 GMT
Viewed: 
137 times
  
In lugnet.off-topic.geek, Jim Hughes writes:
OK, here's one that I cant figure out but is probably elementary
to you guys. I am working on my next Lego site and need to
create a directory structure like;

---technica
   |
   -header
   |
   -index
   |   |
   |   8800
   |   |

If I am in the 8800 directory I know I can access the index directory
(the parent) as ../filename but how could I access a file in the technica or
in the header directory from 8800 without going foreward from root (since the
relative location of the technica directory and all subdirectories could • easily
change). Is this even possible?

In this situation, to access technica you would use:

../../filename

To access something in header you would useL

../../header/filename

you can use as many .. as you want - each time you use it, you go up one step
in the hieararchy.

- chris



Message has 1 Reply:
  Re: A UNIX directory/path question
 
(...) Caveat lector, although '..' works great 99.9% of the time, be careful in the presence of symbolic links! --Todd (25 years ago, 17-Sep-99, to lugnet.off-topic.geek)

Message is in Reply To:
  A UNIX directory/path question
 
OK, here's one that I cant figure out but is probably elementary to you guys. I am working on my next Lego site and need to create a directory structure like; ---technica | -header | -index | | | 8800 | | If I am in the 8800 directory I know I can (...) (25 years ago, 17-Sep-99, to lugnet.off-topic.geek)

4 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR