remove folder ---thing---

Hello everyone,

Still learning FreeBSD, I was wondering how to remove a folder named : ---thing---
I used rm -r but I don't understand how not to make understand --- as options but as part of the folder name
Can someone help me ?
 
Lots of commands use getopt(3), so the -- will make it stop processing options, thus won't try to 'translate' a file/directory with a name like ---thing--- as an option.
 
Find the inode of the directory and/or file:
ls -i

Code:
INODE_NUMBER ---thing---

find . -inum INODE_NUMBER -delete

Note:
If you're going to delete a directory with that method, the directory should be empty.
 
Back
Top