-
Recent Posts
Archives
Categories
Meta
Monthly Archives: December 2009
broken databases
/bin/sh /usr/local/bin/els –mysqloptimizedb mysqlcheck –optimize –repair –all-databases
netstat
Show all TCP connections, numeric (IP), process and app name, extended netstat -antpe Show all UDP connections, rest as above netstat -anupe Show all Unix, rest as above, full extended netstat -anxpe Crude DDoS test netstat -an | grep ‘tcp\|udp’ … Continue reading
root su config
The config file (on FC) is /etc/pam.d/su. One of the below lines must be uncommented auth sufficient /lib/security//pam_wheel.so trust use_uid auth required /lib/security//pam_wheel.so use_uid
nice
Starts a process with a custom priority. The default “nice level” is 0. Runs command with minimum priority (when noting else runs) nice -n 20 command Runs command with maximum priority nice -n -19 command
top
Parameter calls Top a certain process by PID top -p PID Top a certain user top -u user Runtime commands f choose fields listed o changes the display order O change the sort by column <> move sort field R … Continue reading
pstree
Lists all processes unde the form of a tree Lists the structure in ASCII form (otherwise it’ll probably get listed in a nasty form) pstree -A By default the processes are listed in a compact form (i.e.: no threads). To … Continue reading