Thursday, May 20, 2010

Linux base command

nohup vmstat 10 2 >1.txt - log perf statistics

vi 1.txt - view file
i - edit file
wq - save and quite

rm -f -r 9.txt - delete file
rm "old_name" new_name - rename

chmod +x stats.sh - allow to perform
./stats.sh - perform

( nohup ./jmeter -n -t S7_-_Apache_vs._lighttpd.jmx -l log.csv & ) - start Jmeter test

ls -la - browse dir
.. - up

tar xzf 1.tar.gz - unpack

tar cvjf file.tar.bz2 filedir1 filedir2 filedir2... - pack files

kill -9 [pid] - kill a process

ps -ef |grep java - the last executed java process

df -h - recourse utilization

ulimit -n - opened files amount

sudo /etc/init.d/apache2 - stop Apache
sudo /etc/init.d/lighttpd - start lighty

which - search

netstat -ant | grep 172.21.10.80 | wc -l - ip connects amount

sudo atop - processors utilization

No comments:

Post a Comment