-
Recent Posts
- Experts devised a technique to bypass web application firewalls (WAF) of several vendorsSecurity Affairs
- Lapsus$ Extortion Group Claims Okta Hack, Microsoft Source Code Leak | WIRED
- 50% reduction in accounts being compromised with MFA
- Open source developer corrupts widely-used libraries, affecting tons of projects – The Verge
- 93% of tested networks are vulnerable to breach…
Categories
- Android (80)
- Android Apps (74)
- Apache (4)
- Arch (10)
- Bill 'em (2)
- CentOS (20)
- Cisco (2)
- Development (12)
- DevOps (3)
- Dominion Companion (15)
- Fedora (20)
- Good Shepherd Knights of Columbus (2)
- Good Shepherd Online App (2)
- GS Chinese Auction (2)
- Guides (52)
- Hacks (10)
- Harptabs.com (68)
- Harptabs.com Mobile App (26)
- Landscaper Tracker (1)
- Linux (80)
- myCookieFortune.com (3)
- Networking (8)
- News (182)
- Our Apps (58)
- Payup (1)
- PHP IP Logger (6)
- Security (20)
- Time Off Tracker (6)
- Website Loader (1)
- Websites (20)
- Windows (4)
Tags
android apps arch beta Bill 'em block bluetooth bug fix Captcha css dc delete development domain controller dominion companion downloader draft email flash FSMO hard disk harptabs Harptabs.com Harptabs.com Android App inode iptables linux Maintenance mobile mobile app mount pacman password photos PHP IP Logger QR security smartctl special character ssh terminal testing time off tracker update upgradeAds by Google
Join us on Facebook
Linux iotop: Check What’s Stressing And Increasing Load On Your Hard Disks
Posted in Guides, Linux
Leave a comment
Deleting Files with Special Character Names
Have you ever accidently created a file with an unusual name and then tried to remove it, you will find this helpful. All files in Linux are assigned what is called an inode number. This unique number allows you to remove a file regardless of it’s name.
To find out the inode number for a file you can type:
stat <filename>
You can also get the inode of every file in a directory using a flag with the ls command:
ls -i
NOTE: The number in front of the file name is the inode number
Now if you want to do a delete by the inode number it is a little but unsual. You can’t just do an rm you need to do a find and plug the results into the rm command.
find . -inum <inode number> -exec rm -i {} \;