Drag .dmg to Terminal but says "No such file or directory"

After upgrading to El Capitan, Terminal says “No such file or directory” either when I drag a file/directory into it or enter the from the keyboard.

Dragging a newly created .dmg produces this.
Adrians-iMac:~ adrianshome$ /Volumes/Install-S140-DEMO.dmg
-bash: /Volumes/Install-S140-DEMO.dmg: is a directory
Adrians-iMac:~ adrianshome$

Changing directory produces this.
Adrians-iMac:~ adrianshome$ cd/volumes/Install-S140-DEMO.dmg
-bash: cd/volumes/Install-S140-DEMO.dmg: No such file or directory
Adrians-iMac:~ adrianshome$

How can I convince Terminal the directory is there?

Thanks for any advice
Adrian

Hey Adrian,

You can’t drag a .dmg file to the Terminal and make it think that’s a directory.

Presuming you have the disk image mounted type ⌘⇧C and drag the mounted volume to the Terminal.

If you did that already then:

Typing return after dragging the volume to the Terminal will give you the first error. You haven’t provided a proper command.

Change directory (cd) requires a space between it and the path you’re changing to, and that will create the second error.


Best Regards,
Chris


{ MacBookPro6,1 · 2.66 GHz Intel Core i7 · 8GB RAM · OSX 10.11.4 }
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯

Thank you. I guess I need to drag the Folder that is in the .dmg to Terminal and put a space after cd. I’ll try that…