A record of solutions to when I get stuck on some problem. When I think 'I know I have found the answer to this before' I can just search my blog.
Saturday, September 09, 2006
LINUX: Useful commands
ps -aux|grep java //show processes containing 'java' top //display processes list passwd //change current users password passwd gus123 //change password user gus123 service iptables stop //stops firewall from running chkconfig iptables off//firewall won't start on boot
tail -f textfile//turns a log file thats being //generated into a console netstat -a //shows port usage touch <file> //update timestamp of file dd if=/dev/zero of=/dev/hda/ bs=512 count=1//wipe mbr free -m //check mem usage du -x --block-size=1024K | sort -nr | head -10 //10 biggest folders in current path wc -l gives linecount