[英]No such file or directory even though there is a folder
My terminal is saying this: 我的终端是这样说的:
"no such file or directory". “没有相应的文件和目录”。 Even when I can see the folder named "Marcy" on my desktop.
即使在桌面上也可以看到名为“ Marcy”的文件夹。
Pls, help. 请帮忙。 It is driving me crazy.
这让我发疯。
Right click on the folder "Marcy" and then select get info. 右键单击文件夹“ Marcy”,然后选择获取信息。 In "get info", the actual location of the folder is displayed near the top as shown below.
在“获取信息”中,文件夹的实际位置显示在顶部附近,如下所示。
Another way to accomplish this is by using the terminal. 完成此操作的另一种方法是使用终端。 From the terminal type:
从终端输入:
locate filename
This should list the full path to the file and you can easily delete it by typing: 这应该列出文件的完整路径,您可以通过键入以下内容轻松删除它:
rm /path_to_file/filename
The "locate" command will list all occurrences of the file name so be sure to delete the one on your main disc drive and not one that may appear on a backup drive. “ locate”命令将列出所有出现的文件名,因此请确保删除主磁盘驱动器上的文件名,而不删除备份驱动器上可能出现的文件名。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.