☰ Categories

Linux: Removing a file with special characters

Do the following:
1. ls -il

eg: 160342 -rw-r–r–. 1 root root 198 Aug 23 15:08 info’Test’document.txt

2. Take note of the files inode number

3. Run the following command: find . -inum “inode number” -exec rm -f {} ;

eg: find . -inum 160342 -exec rm -f {} ;