Facebook

Few very dangerous commands in Linux



NOTE : DO NOT RUN these commands on your machine. Use friend's system. :)

So in Linux there are many simple, short and efficient commands which can be very harmful if are not used with precaution. 

1. sudo rm -rf /

 This command remove all the content from root(/) directory when hit enter after providing password. This is one reason our default working user is not root.


2. :(){ :|: & };:


This is fork bomb. This command replicates itself until all of your CPU and memory is not occupied. Finally your system freezes and you have to forcefully shutdown your system. This command is used in DOS attack.

3. dd if=/dev/random of=/dev/sda

This command perform low level copying and write random data to hard drive.

4. mv ~ /dev/null

This command move all your data from home directory to null device. Null device is like a Black Hole. All your data is lost for forever.

5. 'command' >  /dev/sda

This command will write the output of the 'command' directly hard drive wiping all your data.


Happy Learning :)


If you liked this information then don't forget to share this info and like the page Newbie.StayHungry






No comments:

Post a Comment