0

I need to change the directory to following path

/media/New Volume/softwr/pgm

and

/home/sdk

for 2 diff purpose. But by using cd its not working

I tried

cd media and cd home

Both time its showing such file or directory not existing. I am new to Linux environment.I'm using Ubuntu 12.04LTS Can anyone help?

Braiam
  • 67,791
  • 32
  • 179
  • 269
Sjk
  • 123

2 Answers2

2

When you open a Terminal, the working directory is you home, so you can easily go to /home/sdk by entering:

cd sdk

Otherwise, you should type the complete address beginning with /. In the case of an address contains spaces you have to use quotations or use \ before the space. Like:

cd "/media/New Volume/softwr/pgm"

or

cd /media/New\ Volume/softwr/pgm

Note that Linux is case-sensitive, so be careful about the uppercase letters.

AliNajafies
  • 5,874
  • .I didnt knew about this problem with space and case-sensitive issue.it works thanks. – Sjk Sep 30 '13 at 08:49
1

cd media and cd home will never work because you are trying to change to a directory called media or home in your current directory.

braiam@braiam-PX741AA-ABA-A1104X:~$ cd media
bash: cd: media: No such file or directory
braiam@braiam-PX741AA-ABA-A1104X:~$ cd home
bash: cd: home: No such file or directory

The correct path is with / at the start.

:~$ cd /media
:/media$ 
:~$ cd /home
:/home$ 

Read the Relative and Absolute path of this answer for more information.

Braiam
  • 67,791
  • 32
  • 179
  • 269