Can you navigate ABOVE the home directory?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Can you navigate ABOVE the home directory?
# 1  
Old 06-13-2007
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  
Old 06-13-2007
Yes "/cygdrive" is the way to go

Last edited by porter; 06-13-2007 at 11:24 PM..
# 3  
Old 06-13-2007
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 Smilie

H.
# 4  
Old 06-13-2007
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  
Old 06-13-2007
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.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

SunOS confusing root directory and user home directory

Hello, I've just started using a Solaris machine with SunOS 5.10. After the machine is turned on, I open a Console window and at the prompt, if I execute a pwd command, it tells me I'm at my home directory (someone configured "myuser" as default user after init). ... (2 Replies)
Discussion started by: egyassun
2 Replies

2. UNIX for Dummies Questions & Answers

Need to navigate to HOME directory when I log in

Hi, Currently i'm logging as a user say atgdev. When I login it takes me to directory /. I see the home directory set as /home/atgdev/ I want that when i log in it shud directly go to my home directory i.e /home/atgdev/. I thought .profile in /home/atgdev/ will be invoked first when i log... (9 Replies)
Discussion started by: Gangadhar Reddy
9 Replies

3. AIX

Do you need execute permission to navigate to a directory?

i have a user 'bart' which does not belong to apps group (as shown below) and i want him to be able to navigate to TEST directory.. i gave him read access but he cannot get through. when i added execute permission he was able to navigate to TEST drwxr-xr-- 3 draco apps 4096 Apr... (2 Replies)
Discussion started by: chipahoys
2 Replies

4. Shell Programming and Scripting

Script That Can navigate to 3 differents directory & remove files under them

Hi I am Trying to Write a script that can goto 4 different directorys on the server & remove the Files older then 30 days ?? /logs logs1 logs2 logs3 Now I need to remove files under logs1 logs2 logs3 which are older then 30 days whose name stat 'sit' , 'mig','bld' . in... (3 Replies)
Discussion started by: Beginner123
3 Replies

5. Solaris

Restricting SFTP user to a defined directory and home directory

Hi, I've created solaris user which has both FTP and SFTP Access. Using the "ftpaccess" configuration file options "guest-root" and "restricted-uid", i can restrict the user to a specific directory. But I'm unable to restrict the user when the user is logged in using SFTP. The aim is to... (1 Reply)
Discussion started by: sftpuser
1 Replies

6. Shell Programming and Scripting

home directory

hello i want shell script. as root , i want to untar specific.tar.gz to all home user directory and after untar , there is 1.txt 2.txt ~~ 26.txt in/public_html/test1/ i want randomly selected 6 text files in 1.txt 2.txt ~26.txt to be renamed newword1.word , newword2.word , ~~... (8 Replies)
Discussion started by: topic32428285
8 Replies

7. UNIX for Dummies Questions & Answers

Viewing Directory Content as You Navigate Directories in UNIX

Hi, Can someone help me figure out how to view directory content while I navigate directories (without having to go to the actual directory and "ls-ing" it)? Is there some keyboard shortcut for this? For instance, it would be useful if I could see the content of a directory when I'm copying... (2 Replies)
Discussion started by: shelata
2 Replies

8. Shell Programming and Scripting

How Do I Navigate To A Directory???

I am trying to install some applications, on my linux OS and all the instructions are tell me that ill have to navigate to the directories and type the link that they provide, but i try typing 'dir' which shows me the directories but to access a particular one i can't remember how??? can anyone... (2 Replies)
Discussion started by: kprescod4158
2 Replies

9. UNIX for Dummies Questions & Answers

home directory

Hi what is the difference between the directory named /home and the user's home directory? can anyone plz reply? really confuse about it!!!!!!!! thank you (1 Reply)
Discussion started by: nokia3100
1 Replies
Login or Register to Ask a Question