Archive for March, 2010

cd -

Sunday, March 21st, 2010

Did you know when you press “cd -” you can back to previous directory? Here’s some example

linux01:/var/www/mywebsite$ cd /home
linux01:/home$ cd -
linux01:/var/www/mywebsite$

[shortlink]

Mplayer Encoder

Sunday, March 21st, 2010

If you’re using Ubuntu, the default install of Ubuntu can’t play movie file. ie .avi, .mpg, etc. You need to install an encoder.

$sudo aptitude install mencoder

Then you’re ready to play your movie files.

[short link]

mplayer encoder, mplayerencoder for ubuntu

How to take a sneak peek postfix mail queue

Saturday, March 20th, 2010

Sometimes we — Sysadmin, need to see what is the content of mail in the queue. If you are using postfix, you can do

$sudo postcat -q 9B44FC820A

You can change 9B44FC820A with the queue number on your server.

peek mail postfix, postfix peek
 
 

Switch to our mobile site