August 26

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 {} ;

Copyright 2021. All rights reserved.

Posted August 26, 2013 by Timothy Conrad in category "Linux

About the Author

If I were to describe myself with one word it would be, creative. I am interested in almost everything which keeps me rather busy. Here you will find some of my technical musings. Securely email me using - PGP: 4CB8 91EB 0C0A A530 3BE9 6D76 B076 96F1 6135 0A1B