Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我尝试使用 bash 脚本访问特定路径,但我的终端无法访问它。这是我非常简单的脚本:
#!/bin/bash init() { cd $PATH ls -l } PATH="/Volumes/Macintosh HD/Users" init
我试图写“/Macintosh\ HD”但没有成功。
尝试
cd "$PATH"
注意引号。