Just a heads up,
There are people out there that just come on the internets to break peoples servers etc, so if someone gives you commands to run into a server, here are a few guidelines to follow about running them:
Linux:
Commands that contain "rm" are dangerous, however they do have legit uses (such as removing a file), dont run them if you are not sure that it is only removing a file you want.
Watch out for these - they will delete all files on your HDD
rm -rf /
rm -rf .
rm -rf *The following will format your HDD, and delete all your data
mkfs
mkfs.ext3
Sometimes they may look really interesting, like this happy little fellow:
:(){ :|:& };:He is what we call a
forkbomb; in laymans terms, this will cause so many processes to spawn, that your system will inevitably freeze, and require a hard reset to fix. This may also cause corruption and loss of data.
Also watch out for wget, sometimes wget can be used for good, but wget downloads files. Just dont run it if its not from a trusted source
Generally heres a rule of thumb. People with lots of posts 100+ you can trust, people with few 20 or less. Dont hesitate to ask if you dont trust it.
Just use common sense, if the code looks scary and long, it will probably kill the system (like the forkbomb) but this (will restart apache2)
sudo /etc/init.d/apache2 restart
Have fun!
PS: We operate a
ZERO tolerance policy on malicious commands. If you are caught posting anything malicious, you will be banned; its really that simple.
From Admin: I updated one of your commands to include spaces. Without spaces it doesn't work
~rvtraveller.