MAC ITEM 解决cd: string not in pwd的问题

今天使用cd 粘贴复制的路径的时候,报了这么一个错.

cd: string not in pwd

复制代码
eistert@192 Library % cd Application Support
cd: string not in pwd: Application
eistert@192 Library % 

让人一脸懵逼.

对比一下,发现中文路径里的空格截断了路径

导致后面的路径就没有办法被包含进去

解决的办法也很简单

加个转义字符 \ 就行了

参考文章

解决cd: string not in pwd的问题

https://blog.csdn.net/guaigle001/article/details/100638679

相关推荐
Wcowin6 小时前
Mac Shell 环境优化指南
macos·职场和发展·蓝桥杯
止礼6 小时前
FFmpeg8.0.1 Mac环境 CMake本地调试配置
macos·ffmpeg
sean9087 小时前
Colima 下 docker pull 失败自查流程
macos·docker·容器·colima
denggun123451 天前
卡顿监测原理
macos·ios·xcode
Sheffi661 天前
iOS 触摸事件完整传递链路:Hit-Test 全流程深度解析
macos·ios·cocoa
ChineHe1 天前
Gin框架入门篇002_第一个Gin服务
macos·xcode·gin
Roc.Chang1 天前
解决 macOS 26.1 The application “xxxx” can’t be opened. 问题
macos
赶路人儿1 天前
从intel mac迁移到M3后软件的兼容性
macos
颜淡慕潇1 天前
Podman 从0到1使用教程(macOS 系统):安装 MySQL、Redis 容器
mysql·macos·podman
Niap.pr1 天前
Macos下访问树莓派系统(ext4)
macos