Option a)
$watch -n 1 mysqladmin –user=<user> –password=<password> processlist
Option b) Install mytop
Enjoy.
A blog where I drop some minor writings.
English posts
Option a)
$watch -n 1 mysqladmin –user=<user> –password=<password> processlist
Option b) Install mytop
Enjoy.
Let’s start with a few very simple examples and build up on those.
If you remember, I said that netcat was a Swiss Army knife. What would a Swiss Army knife be if it also wasn’t a regular knife, right? That’s why netcat can be used as a replacement of telnet:
$ nc www.google.com 80
Option a) (port 80)
$nc -w 5 -v -l -p 80 < file.ext
Option b) (port 8000)
$ python –m SimpleHTTPServer
Easy.
# lsof
Running lsof
without any arguments lists all open files by all processes.
Other useful commands after the jump:
This is the easy way to change all files matching a patten.
$ find /path/to/images -name ‘*.DOC’ -exec rename “s/.DOC/.doc/g” {} ;
<alt> + <print screen/sys rq> + <R> – <S> – <E> – <I> – <U> – <B>
Continue reading “Reboot machine when everything is hanging”
I was installing vmware tools on a debian server and it asked where my killall program was.
Continue reading “vmware : What is the location of the “killall” program ?”
Ok, you want to mount some remote stuff with sshfs.
Download fuse and sshfs from here. (Stable release.)
So, yes, I need a windows OS because … whatever.
I’ve just registered myself in vmware and downloaded from here.
Continue reading “vmware server 2 – failed to initialize monitor device”
Today I had to install mod_python and I’ve got the following error:
The following NEW packages will be installed:
libapache2-mod-python
0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded.
Need to get 0B/134kB of archives.
After this operation, 590kB of additional disk space will be used.
Preconfiguring packages …
Continue reading “python does not match the python default version”