Output of a shell command can be written to a file by using > but if you don’t want to overwrite the contents of the file then you can use >> to write to the end of the file. The below will write the date to a file in /var/log: date > /var/log/currenttime The below…
Frequently it is convenient, when testing and debugging (or even just when browsing normally), to purge all of the cookies for a particular site. Although it is possible to do so through FireFox’s cookie manager (accessible through Preferences, Privacy, “Show Cookies”), it is much easier and quicker to use the aptly named [Remove Cookies for…
After installing the wp-forum plugin you may notice that the layout looks out of wack. This could be for numerous issues but one I came across was the fact that after unpacking the plugin on the server the main directory permissions were incorrect. If you chown 775 wp-forum in <web-root>/wp-content/wp-plugins/wp-forum this should resolve your issue.
Checking the number of rows in a PostgreSQL table is very easy. First connect to the database by using pgsql.
psql -U postgres -d "database-name"
Next use the following command to see the number of rows in a certain table.
select count(*) from tablename