List all open files.
# lsof
Running lsof
without any arguments lists all open files by all processes.
Other useful commands after the jump:
A blog where I drop some minor writings.
La linea de comandes de Linux
# 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”
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”
There are times when you’re looking for a particular library, or file, which you know is available to Debian but you cannot find the package which contains it. This is the kind of job that the Debian packages site helped with in the past, but given its current unavailability we’ll look at another approach.
Puede pasar que nos distraigamos y pongamos un password en la linea de comandos, por lo que este queda en el history. Es importante borrarlo, y se pude hacer de la siguiente manera:
# history -d 5
Donde 5 es el numero de linea donde se encuentra nuestro comando.
Esperemos que no sea necesario hacerlo muy a menudo.
Aquellos que tengan por costumbre tener un par o tres de terminales a lo mejor encontraran útil distribuirse estas terminales de forma que las puedan ver todas a la vez, como un mosaico.
Existe un gestor de terminales llamado Terminador. Como siempre facilmente instalable con apt, merge, yum, zypper o synaptic.
Continue reading “Terminator”