我不知道如何编写名称中包含空格的文件夹的路径(在终端中)。
我试过:
cd /path/path/path/"A Folder"/file
cd /path/path/path/'A Folder/file
cd /path/path/path/A_Folder/file
Run Code Online (Sandbox Code Playgroud)
但它们都通过终端返回错误:
[command]: cannot access '/path/path/path/A Folder/file' No such a file or directory
Run Code Online (Sandbox Code Playgroud)
我仍然可以通过如下步骤访问它:
cd /home
cd user
cd Desktop
cd "Bash Programming"
bash Example
Run Code Online (Sandbox Code Playgroud) 我是 Ubuntu 新手,刚开始学习 bash。
如何通过终端打开 bash 文件?