Friday, August 13, 2010

pidgin log view

view pidgin logs for last 1 day

this is for the lazy users who want to check the last few chat messages
and respond

you need to enable logging.
go to your .purple directory usually in $HOME or give that path and find

this shows you the previous days chat messages till now.

find logs -mtime -2 -a -type f|xargs ls -tr|xargs elinks -dump -no-references|less

Thursday, August 5, 2010

System commands

System commands

Disk usage

df     report file system disk space blocks usage
df -i  disk space inodes usage
du    disk usage actual filesize
rm    remove file
mkdir  create directory
rmdir  remove empty directory

Process commands

ps        current processes
pmap  PID   memory map of process
kill  PID       kill process
kill  -TERM          default if no signal given (TERM=15)
pstree                     process tree
free        memory usage
ipcs        interprocess communication protocol
top         displays linux current tasks