简体   繁体   English

即使有文件夹也没有这样的文件或目录

[英]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.

相关问题 为什么crontab:即使文件夹存在并且具有777权限,也不是这样的文件或目录? - Why crontab: not such file or directory even if the folder exists and has 777 permission? 即使PATH变量中存在目录,make / cc仍未找到头文件 - make/cc not finding header file even though its directory is present in PATH variable 即使文件存在,readFileSync也不会返回任何数据 - readFileSync returns no data even though file exists pip安装到错误的文件夹,即使`哪个pip`是正确的 - pip installing to wrong folder even though `which pip` is correct UNIX,“我没有看到这样的文件或目录” - UNIX “No such file or directory” though I see it 即使文件确实存在,File.Exists返回false - File.Exists returns false even though the file does exist 为递归目录中的每个文件创建文件夹,将文件放入文件夹 - Create Folder for Each File in Recursive Directory, Placing File in Folder 即使使用 .bowerrc (Mac) 设置,bower install 也不会创建包含包的文件夹 - bower install does not create folder with packages even though it is set up with .bowerrc (Mac) 即使我安装了 JRE,也无法打开.jnlp 文件 - Can't open .jnlp file even though I have a JRE installed cp:将 phpMyAdmin 文件夹复制到 /Library/WebServer/Documents/ 时没有这样的文件或目录 - cp: No such file or directory when copying phpMyAdmin folder to /Library/WebServer/Documents/
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM