bash Mac OS X 终端 - “cd ..”在终端中不起作用
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/31755544/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Mac OS X Terminal - "cd.." does not work in terminal
提问by Shan Batla
Currently, the "cd.." command no longer seems to be operating on my Mac.
目前,“cd..”命令似乎不再在我的 Mac 上运行。
See error below:
请参阅下面的错误:
ShanMacBook-Pro:Documents ShanMacbookPro$ cd..
-bash: cd..: command not found
ShanMacBook-Pro:Documents ShanMacbookPro$ cd..
-bash: cd..: command not found
Not sure if it is a path issue:
不知道是不是路径问题:
Shan-MacBook-Pro:Documents ShanMacbookPro$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin
Shan-MacBook-Pro:Documents ShanMacbookPro$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin
My machine:
我的机器:
- Macbook Pro Late 2014
- Yosemite 10.10.4
- NodeJS installed
- MeteorJS installed
- Git installed
- 2014 年末 Macbook Pro
- 优胜美地 10.10.4
- 安装了 NodeJS
- 安装了 MeteorJS
- 安装了 Git
回答by Evan
Use cd ..
用 cd ..
You need a space between the cd and the ..
您需要在 cd 和 .. 之间留一个空格。
Let me know if that helps!
如果有帮助,请告诉我!