cd is to change directory. It does not change Volume. ls Volume only lists the Volume. I want to change to another volume aside from the default to change a file in Terminal.
cd is to change directory. It does not change Volume.
ls Volume only lists the Volume. I want to change to another volume aside from the default to change a file in Terminal.
Eva01
cd is to change directory. It does not change Volume.
ls Volume only lists the Volume. I want to change to another volume aside from the default to change a file in Terminal.
Eva01
Volume name: ferguson
command: cd /volumes/ferguson
And I don't even use Terminal.
PS: What about volumes with spaces between their name? Like Craig Ferguson?
In most shells these days (including OSX Terminal) you can type /Volumes/Cr and hit tab. It will fill in the rest.cd /Volumes/Craig\ Ferguson/
In most shells these days (including OSX Terminal) you can type /Volumes/Cr and hit tab. It will fill in the rest.
You're taking a poor approach to learning the OSX command shell (NOT the Terminal application, which simply serves to execute a command shell in a window).
You really need to learn some basic principles of the shell command language and how OSX file systems are organized. Any intro or comprehensive OSX book (I like "Mac OS X Snow Leopard, the Missing Manual") will give you this.
When you state "I didn't know I had to put /Volumes in front of the volume name" you are telling me that you still don't get it.
The right question would have been "where are volumes conventionally mounted in the file system?"
Volumes do not HAVE to be mounted under /Volumes, or, indeed, mounted at all. If you want to access a volume that's been mounted elsewhere (because you mounted it manually, or because some program mounted it somewhere else - for example, as may be with some programs that mount remote file systems) you won't necessarily be using either /Volumes or the volume name in the cd path. If the volume is not mounted, you will need to mount it first.
If you don't know what that means, you should go back and do some basic reading about OSX.
The "cd" command simply allows you to move around in the file system.
You may find the "df" command useful. "df -h" will list all mounted volumes, their mount points in the file system, and the amount of space used and free on each volume. (The -h tells it to give the numbers in "human" terms, like megabytes or gigabytes. Otherwise it reports in blocks, which is a fairly meaningless term to most people.)
For what it might or might not be worth, a useful little trick that OS X offers is that you can drag a file or folder into the Terminal window, and it will result in the full path / name being inserted at the caret point.
Works in Ubuntu 8.04 also.
And in situations like I have where I have a pair of drives named Mac 2 and Mac 3 I have to type cd /Volumes/Mac\ 3/ if I want that specific disk.
I don't think very many Ubuntu users would be asking the question in this thread.![]()
![]()
Not really... all you have to do is hit tab again, and it will fill in the next possible match.
cd /v<tab>m<tab><tab>
In most shells these days (including OSX Terminal) you can type /Volumes/Cr and hit tab. It will fill in the rest.
Is this an SL enhancement? It's not working for me in Leopard
mt
Works in Windows too. Has for as long as I can remember.Works in Ubuntu 8.04 also.
That (default) behavior is not engraved in marble, and can instantly be changed via:bash is case-sensitive. Make sure you're typing "/V", and not "/v".