View Single Post
  #3  
Old October 7th, 2001, 04:25 PM
AdmiralAK's Avatar
AdmiralAK AdmiralAK is offline
Simply Daemonic
 
Join Date: Oct 2000
Location: Classified
Posts: 5,787
Thanks: 0
Thanked 0 Times in 0 Posts
AdmiralAK is on a distinguished road
Cool! Now how do I change folder ?

well... so you want to change to another folder eh ?

The good thing is that it is simple!
there is only one command, cd .

Now. lets say we are in the same directory as above, and we want to go into Documents/ ... what do we do ?

we do the command cd documents...and pouf! we're there!
here is what it looks like:

Code:
[admiralty:~] admiral% cd Documents
[admiralty:~/Documents] admiral% ls
Above we see that we changed directory to Documents, and we can verify that we've changed to "Documents" because "Documents" has been added to our prompt! Cool eh ? (No I am not canadian )

---

Now lets say I wanna go back... it's also simple!
All you have to do is type
cd .. (cd space dot dot)

Code:
[admiralty:~/Documents] admiral% cd ..
[admiralty:~] admiral%
and we can verify that we actually moved back to the previous directory by looking at out prompt!


----

Now finally... lets say you want to go back to your home directory, but you are God knows where in your computer and dont know exactly WHERE your home directory is.

Lets say you are in:
Code:
admiralty:some_folder/some_Other_Folder/Some_smaller_folder/
and you want to go home. Well. The good unix folks thought about this one and they did this:

at the prompt just type cd and hit return. You will be back in your home directory
__________________
<<------------------------------>>
Seid ihr bereit fuer Club Admiralty ????
Club Admiralty: Http://www.club-admiralty.com
Copyright 1996-present
Bonified Gadget Geek :-)
<<------------------------------>>
Reply With Quote