http://blog.sina.com.cn/s/blog_5e8392b10100jkvg.html

 

今天在公司用mac的时候,有个文件夹的名字有空格,怎么都进不去,在网上一查原来不能直接cd 文件名。

下面是我找到方法,可行。

转自http://467411.blog.163.com/blog/static/3353960920104494612750/

Unix, Linux, Mac OS 如果想进入当前目录下的'my files'文件夹,有如下三种方法(当然还可能有更多):
 1 使用'\' $cd my\ files
2 使用''' $cd my' 'files
3 使用'"' $cd my" "files
总体都是将空格转义或者注释起来。

相关文章:

  • 2021-08-09
  • 2022-12-23
  • 2021-08-18
  • 2022-12-23
  • 2021-11-13
  • 2022-12-23
  • 2021-12-07
猜你喜欢
  • 2021-11-25
  • 2022-12-23
  • 2022-12-23
  • 2021-11-23
  • 2021-12-29
  • 2021-10-08
  • 2021-10-08
相关资源
相似解决方案