The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How Do I Navigate To A Directory??? kprescod4158 Shell Programming and Scripting 2 01-20-2008 05:24 AM
home directory nokia3100 UNIX for Dummies Questions & Answers 1 05-07-2007 02:16 PM
cd into home directory ~ here2learn UNIX for Dummies Questions & Answers 4 04-12-2005 09:20 AM
c++ home directory?? user666 UNIX for Dummies Questions & Answers 3 03-16-2002 09:49 PM
NFS mount home directory larry UNIX for Dummies Questions & Answers 3 03-01-2002 04:40 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-13-2007
patwa patwa is offline
Registered User
  
 

Join Date: Nov 2006
Posts: 23
Can you navigate ABOVE the home directory?

Hello,

How do I navigate to the level ABOVE the home directory?

I have the following structure on my drive, bearing in my I'm using a cygwin port on Windows.

C:\
C:\cygwin
C:\cygwin\bin
C:\cygwin\otherfolders
C:\cygwin\home (the home directory)
C:\cygwin\home\H (my user directory)

So for example, today I compiled a new version of rsync, and keeping in the spirit of trying to use cygwin as much as possible for Unix practice, how would I copy the new rsync.exe from:

C:\cygwin\home\H\rsync.exe
to
C:\cygwin\bin\rsync.exe

When the /bin folder is ABOVE the home directory?

I did it using Windows Explorer, but could I have done it with cygwin? And yes, I'm aware of the /cygdrive/c/ option, would that be the only way?

Thanks.

H.
  #2 (permalink)  
Old 06-13-2007
porter porter is offline Forum Advisor  
Registered User
  
 

Join Date: Jan 2007
Posts: 2,965
Yes "/cygdrive" is the way to go

Last edited by porter; 06-13-2007 at 10:24 PM..
  #3 (permalink)  
Old 06-13-2007
patwa patwa is offline
Registered User
  
 

Join Date: Nov 2006
Posts: 23
Hi, I got that. Thanks.

But on a 'normal' unix system could it be done? Or would the /home directory by default be above all the drives (similar to 'My computer' in Windows)? How would you access the root of your drives on a normal Unix system?

sorry for my curiosity, it must be getting annoying by now

H.
  #4 (permalink)  
Old 06-13-2007
zazzybob's Avatar
zazzybob zazzybob is offline Forum Advisor  
Registered Geek
  
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
cd .. will take you one level up the directory hierarchy (i.e. into the parent directory)
cd / will take you to the root directory (the top of the directory hierarchy)

http://www.pathname.com/fhs/

Cheers
ZB
  #5 (permalink)  
Old 06-13-2007
porter porter is offline Forum Advisor  
Registered User
  
 

Join Date: Jan 2007
Posts: 2,965
There are two roots, one in the Windows world which really begins with "\\" and one in the cygwin world which begins with "/".

Imagine if your home directory was actually an NFS share. It would be mounted in your file system under "/home" but on the server it would be "/export/home" or similar.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:58 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0