Wednesday, December 1, 2010

enable terminal color in Guake

In guake type:
$ echo $TERM
$ dumb

vim ~/.bashrc
export TERM=xterm

The above mentioned problem occur in ubuntu 10.10

Monday, October 4, 2010

FTP service in Ubuntu

default path of FTP service in Ubuntu:

Conf file:

Wednesday, September 1, 2010

Repair windows xp MBR

- insert bootable windows xp cd.
- select 'repair windows xp'
- fixmbr
- fixboot
- exit
Machine will reboot.

Saturday, June 12, 2010

view only dir in console (linux)

$ cd dir
$ ls -d */

it will only list directories present in the current dir and neither files nor contents of subdirs.
It is useful if a dir contains many files and you need to print the list of subdirs only.

Saturday, May 29, 2010

using mailx from command line

*) Using mailx for sending mail:

echo "this is a mail body\n~c" | mailx -s "my subject"

This will send mail
Subject: my subject

this is a mail body
the '\n~c' will add the recipient to Cc list, as '~' tilde option only recognized by mailx cmd if present at start of line