-5

How can I open a directory via PUTTY that contains -?

For example the name of dir is:

some-thing-dir

cd /some-thing-dir not working.

Sven
  • 98,649
  • 14
  • 180
  • 226
user2301881
  • 101
  • 1
  • possible duplicate of [How to "cd" into a directory with this name "-2"?](http://serverfault.com/questions/462739/how-to-cd-into-a-directory-with-this-name-2) – Michael Hampton May 14 '13 at 13:41

3 Answers3

1

Well, it should be working.... what error message do you get? Nevertheless you can try to escape the dash:

cd /some\-thing\-dir
Pascal Schmiel
  • 1,738
  • 12
  • 17
1

You should try e.g. cd ./home\-movie\-economics or perhaps cd 'home-movie-economics'

vonbrand
  • 1,149
  • 2
  • 8
  • 16
0

Just quote it.

cd /'some-thing-dir'
cuonglm
  • 2,386
  • 2
  • 16
  • 20