无法删除文件 - 没有这样的文件或目录

Val*_*riu 12 delete files

我删除了一次,但它的鬼魂还在:)

如何删除存在但系统提示不存在的文件?

权限选项卡 - 尝试更改它,但它会自动重置 当我点击“删除”时会发生这种情况

小智 0

首先以 root 身份登录sudo -s

您可以尝试执行rm -v <file>并查看详细输出,以了解在尝试删除文件时发生了什么。查看下面命令的选项。

如果失败,您可以像其他人所说的那样使用强制选项。您还可以尝试通过强制递归删除来删除整个目录:rm -rfv **full directory address here**



来自UNIX 命令指南:

概要

   rm [OPTION]... FILE...
Run Code Online (Sandbox Code Playgroud)

描述

   rm removes each file. By default, it does not remove directories.

   If a file is unwritable, the standard input is a tty,  and  the  -f  or
   --force  option is not given, rm prompts the user for whether to remove
   the file.  If the response is not affirmative, the file is skipped.
Run Code Online (Sandbox Code Playgroud)

选项

   Remove (unlink) the FILE(s).

   -f, --force
      ignore nonexistent files, never prompt

   -i, --interactive
      prompt before any removal

   --no-preserve-root do not treat '/' specially (the default)

   --preserve-root
      fail to operate recursively on '/'

   -r, -R, --recursive
      remove directories and their contents recursively

   -v, --verbose
      explain what is being done

   --help display this help and exit

   --version
      output version information and exit

   By default, rm does not remove directories.  Use the --recursive (-r or
   -R)  option to remove each listed directory, too, along with all of its
   contents.

   To remove a file whose name starts with a '-', for example '-foo',  use
   one of these commands:

      rm -- -foo

      rm ./-foo

   Note  that  if  you  use rm to remove a file, it is usually possible to
   recover the contents of that file.  If you want more assurance that the
   contents are truly unrecoverable, consider using shred.
Run Code Online (Sandbox Code Playgroud)


man*_*k13 -1

向我们展示终端......执行ll | grep panorama并向我们展示;将其添加到您的问题中...

我的建议是以root 身份 进行rm -f panorama.jpg

在 rm 的人中我发现了这个:

-f, --force
              ignore nonexistent files, never prompt
Run Code Online (Sandbox Code Playgroud)