MacOS:删除临时 Microsoft 文件

MacOS: remove temporary Microsoft files

我的情况如下:

$ pwd /Users/user_name/Desktop

$ ls ~$file_1.xlsx ~$file_2.pptx ~$file_3.pptx

$ rm ~$file_1.xlsx rm: ~.xlsx: No such file or directory

据我所知,这些文件是在 VPN 连接期间打开的,并且连接在文件打开之前关闭。

每个人都有权限-rw-r--r--@

None 可见。

rm -rf也不行。

有什么方法可以摆脱这些?

尝试使用 ls -il

查找这些文件的 inode 编号

然后运行以下命令:

find . -inum <i node number of the file here> | xargs rm -rf