Directories

General technological topics without their own forum go here

Directories

Post by Excision on Wed May 16, 2012 7:47 pm
([msg=66382]see Directories[/msg])

Hi,
I have a very basic question concerning directories/directory transversal. I'm still new to this, but I have researched, googled, and banged my head against the keys trying to understand them. I've read up and completed basic mission 8 and 9. Now I am on realistic 3, but I just can not visualize how you travel through the directories. I know it's probably very obvious, but does anybody know of any visuals or ways I could understand? Sorry, if I made you lose brain cells reading this. =/

Sincerely,
Excision
Excision
New User
New User
 
Posts: 6
Joined: Tue May 15, 2012 4:17 pm
Blog: View Blog (0)


Re: Directories

Post by LoGiCaL__ on Wed May 16, 2012 9:21 pm
([msg=66384]see Re: Directories[/msg])

starting directory = "root/user/home"''

If you want to move to the user directory try:
Code: Select all
cd ..


The dots mean go back one directory.

Now lets say your in "user/home/programming", but there is a .txt file you want to copy to the programming directory:

Code: Select all
cp ../../*.txt newCopy.txt


for each directory you want to go back use the .. command, but if it's multiple directories don't forget the '/'. so it could be something like ../../programming/Current/smallScale/program.* file name.
User avatar
LoGiCaL__
Moderator
Moderator
 
Posts: 1048
Joined: Sun May 30, 2010 12:33 pm
Blog: View Blog (0)


Re: Directories

Post by Excision on Wed May 16, 2012 11:19 pm
([msg=66387]see Re: Directories[/msg])

Thank you, very very much! ^.^
Excision
New User
New User
 
Posts: 6
Joined: Tue May 15, 2012 4:17 pm
Blog: View Blog (0)


Re: Directories

Post by LoGiCaL__ on Thu May 17, 2012 8:20 am
([msg=66393]see Re: Directories[/msg])

You may want to check this out also:

http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp?topic=/com.ibm.aix.baseadmn/doc/baseadmndita/dir_pathnames.htm

Pay special attention to absolute vs. relative path names
User avatar
LoGiCaL__
Moderator
Moderator
 
Posts: 1048
Joined: Sun May 30, 2010 12:33 pm
Blog: View Blog (0)



Return to General

Who is online

Users browsing this forum: No registered users and 0 guests