- April 15th, 2009
- Write comment
Various useful lsof options:
To view files open by a particular PID:
lsof -p pidnumber
To show processes and the port they are running on. This is a great command to find out not only process and port, but also the command and the PID.:
lsof -i -nP # The -n does not resolve the IP addresses and ports to names.
Sometimes you can get an out of Terminal licenses message when connecting from a client, even if there are still plenty of licenses available. This can be due to some corruption in the client registry. You just need to delete the following key, and try connecting again. You should get the same license from the Terminal server.
To check the current settings for postifx:
The default mailbox size is 51200000.
The default message size is 10240000.
To change it:
mailbox_size_limit = newmailboxsize
message_size_limit = newmessagesize
Download the kernel-2.6.xx-x.*.src.rpm from http://ftp.redhat.com/pub/redhat/linux/enterprise/5Server/en/os/SRPMS/.
rpm -ivh kernel-2.6.xx-x.*.src.rpm
rpmbuild -bb –target=i686 kernel-2.6.spec
rpm -ivh kernel-2.6.xx-x.*.rpm
Here are some common keyboard commands used in other operating systems.
Page Up = Fn+UpArrow
Page Down = Fn+DownArrow
Home = Fn+LeftArrow
End = Fn+RightArrow
Del = fn+delete
# ls -la .procmailrc
-rw-r–r– 1 username users 129 Mar 13 15:08 .procmailrc
# cat .procmailrc
* ^From firstname.lastname@example.org
You can use the following command to simply rebuild all the indexes on a table.
DBCC DBREINDEX(tablename, “”,0)
The command “system_profiler” will return all the hardware information.
Other useful commands include sw_vers, hostinfo, and uname -a.
To utilize the automatic update facility in WordPress 2.7 and greater, the files need to be owned by the same user as the user the web server runs as. For example, a linux installation would need to have the files owned by the apache user and group. I did this by using the following command:
chown -R apache.apache /usr/local/wordpress
From here, the update worked fine. The google analytics plugin worked fine as well.