0

I am using Bash script. When I run cd x y, I get an error that x is not a directory. However, files having names without spaces are selected.

BeastOfCaerbannog
  • 12,964
  • 10
  • 49
  • 77
Ashutosh
  • 1
  • 1

1 Answers1

2

Either quote your argument:

cd "x y"
  

or escape (make not special) the space:

cd x\ y
waltinator
  • 35,099
  • 19
  • 57
  • 93