Skip to main content
  1. Posts/

Removing file named -rf in Unix

··66 words·1 min·
Tips & How-To's Commands Linux Tutorials

I did something crazy at some point that created a file called “-rf” on my filesystem. Now I can’t figure out how to delete it.

I’ve tried rm "-rf" rm \-rf

But these just exit immediately. Arrgh!

Anyone know how to remove this file? Preferably without accidentally cleaning out my whole folder.

heh. What’re the odds, eh?

via Removing “-rf” file in Unix - Super User.

Sathyajith Bhat
Author
Sathyajith Bhat
Author, AWS Container Hero and DevOps Specialist.

Related

[How To]Setup a BSNL DataOne BroadBand connection or a DSL Connection in Linux
··431 words·3 mins
Tips & How-To's Commands Linux Tutorials
Remember that all these assumes that your router is connected to the LAN port, if it’s connected to the USB port, then disconnect it and connect to the LAN port. If you dont have a LAN card, then consider getting one. It’s cheap, costs around Rs. 200. Next, it’s best to have the router configured in pppoe mode. In this case you just have to switch on the router, the router and DHCP will take care of the rest.
Five tips for a more efficient Linux desktop | Five Tips | TechRepublic.com
··130 words·1 min
Linked Commands Cover Find Linux Open Source Tips Tips-and-Howto's Tutorials
1: The pager I am always shocked at how few people actually use the Linux pager. It’s been around forever and has always served the same functionality — it offers the user multiple desktops to keep the desktop better organized. I employ the pager like this: With four workspaces, I dedicate each workspace to a different use. My layout looks like this: Desktop 1 is for networking tools. Desktop 2 is for writing/office tools.
Make Use of PeerGuardian 2’s IP Filter in KTorrent
··131 words·1 min
Tips & How-To's Linux Tutorials
PeerGuardian 2, is an awesome IP filtering software. Though its FOSS, it there isn’t a Linux port of it yet. But don’t worry, if you’re using KTorrent, you can make use of PeerGuardian’s filters. Let me show how you can do so. Launch KTorrent. Click on On Settings -> Configure KTorrent . Click on Plugins and ensure that IP FIlter is checked Now Click on Apply. Next on the sidebar, scroll down and click on IP Filter.