Results 1 to 10 of 14
How the heck do i change the directory in the terminal? I dont know if it is just different than it is in fc/rh but i know that in those ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 02-04-2007 #1
Change Directory in Terminal?
cd [-L] [-P] [dir]
- 02-04-2007 #2
You can just use plain cd :
http://www.ee.surrey.ac.uk/Teaching/Unix/"To express yourself in freedom, you must die to everything of yesterday. From the 'old', you derive security; from the 'new', you gain the flow."
- 02-04-2007 #3
cd changes directory.
So let's say you want to go to /usr/bin. You typeCode:
Or let's say you're in your home directory but now want to go one directory down to your desktop. You'd typeCode:
- 02-04-2007 #4
So if i am in the home folder and i want to go to another foler in there do i still need the "/"?
and do i need "_" for spaces?
and if i am already in the home folder do i still need the /home? or can i just continue from there without having to type it again?
- 02-04-2007 #5
- 02-04-2007 #6
ok thanks i will take a look at this.
- 02-04-2007 #7Originally Posted by Van Halen Man
For example, let's say you're in /home/vanhalen and want to go to /home/vanhalen/music. In that case, you'd doCode:
- 02-04-2007 #8
I am not sure i see the difference between those 2. They are both in the home folder so why the slashes for aerosmiths folder?
- 02-04-2007 #9
- Join Date
- Jan 2007
the difference is where you are.
If you are in /mystuff/sound/music/ any file/directory in there with you is directly available to you. So sub-directorys dont need the /.
If you are in /sound/music/eddievh/ the contents of /music/ are no longer directly available so you need to give the address /mystuff/sound/music/ to the cd command - cd /home/mystuff/sound/music/
you can also cd.. up as in DOS
- 02-05-2007 #10
Well, you didn't start off in the /home folder, though. You started off in /home/vanhalen
If you had started in /home, there would be no difference. You could doCode: