Skip to content
Archive of entries posted on 29th June 2010

CLI Color and bash prompt.. some colored fun with prompts in bash

There are two ways to do it, one is with tput command. We will see that some other time, today we will consider the escape sequence way. First we need to understand the colors as understood by bash. Some time back a fried of mine gave me this little script to find the colors. You [...]

Solaris one liners

http://www.unixguide.net/sun/sunoneliners.shtml Unix/Solaris: One-Liners Source: http://www.kevlo.com/~ebs/unix_commands.txt Listed here are a bunch of unix commands. –> change file date stamp touch –t 199906042020 filename –> move partitions ufsdump 0f – /dev/rdsk/c0t0s0s0 | (cd /home; ufsrestore xv -) –> lay down file system with 1% minfree and inode density newfs –m1 –i81920 /dev/rdsk/c0t0d0s0 –> check file system fsck [...]

Recovering Deleted Files With lsof

Quick update, found this nice article on how to recover deleted file, if its still open by some process.Recovering Deleted Files With lsof Technorati Tags: file, recovery, undelete