-1

My situation is as follows:

$ 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

Best I can gather, these files were opened during a VPN connection, and the connection was closed before the file was.

Each has permissions -rw-r--r--@

None are visible.

rm -rf also doesn't work.

Any way to get rid of these?

93i7hdjb
  • 1,136
  • 1
  • 9
  • 15
  • I don't have a mac OS, so I don't know if this will work. Try finding the inode number of those files - `ls -il` then run the following command: `find . -inum | xargs rm -rf` – mathB Oct 12 '17 at 02:54
  • worked perfectly, thanks! – 93i7hdjb Oct 12 '17 at 13:15

1 Answers1

1

Try finding the inode number of those files using ls -il

Then run the following command:

find . -inum <i node number of the file here> | xargs rm -rf
mathB
  • 634
  • 8
  • 21