If you are a newbie to Ubuntu like me (or any other Unix distro) and you tried deleting a folder which is not empty contains files or subdirectories then you get the annoying error “Directory not empty”.
To delete such a folder (from a terminal) use the rm -rf command. For example to delete a folder called amitbahree run the following:
rm -rf amitbahree/
Similar posts to check out:
- February 28, 2012 -- Less than Symbol in Latex (0)
If you want to show a simple less than symbol (i.e. <) in Latex, you are in for a surprise as you cannot use that character as is. If you are in math mode and writing this part of a formula then you might be still OK, but if you are in text mode then it is quite difficult. Surprisingly, searching for this online also did not provide any obvious answers (perhaps I was searching for the wrong thing). Anyways, I did figure it out in the end, and I needed to use the \textless directive for la... - May 22, 2011 -- Hadoop in Azure (0)
My dear friend Mario has finally got around to blogging and one of his latest posts shows, it is possible to run Hadoop (which if you are not familiar with, can be thought of as an open source version of Google’s MapReduce) in Azure. You need to setup a typical configuration of nodes (Name Nodes, Tracker and Slaves). Sure, there are a number of dependencies some you would expect, others not (e.g. Cygwin – cringe!; but hopefully that will go away with Hadoop 0.22). I wonder what overheard the C... - March 4, 2011 -- Twitter Trends (0)
I was excited to find that Twitter had a JSON (Javascript Object Notation) endpoint for the current trending topics and decided to write a simple consumer which can read this and then spit it out in a simple console. And JSON being so simple and more or less “universal” meant that there are multiple implementations for .NET. Of course if you got lots of bandwidth you can roll out your own parser.
I ended up using Json.NET, which in addition to being OpenSource is also one of the most robust u...
Tags: .opensource
April 6th, 2010 10:29 pm
Lyle made a good point that this will follow symbolic links and delete those as well.
April 10th, 2010 10:40 am
WARNING! You might want to create an alias for ‘rm -rf /’ to something innocuous like ‘ls -l /’ – it is extremely rare that you’d want to actually delete your root folder.
Please don’t ask me how I know this, just trust me.
April 10th, 2010 11:02 am
Well if someone does end up deleting the root folder, they probably deserve the outcome.