Monday, September 27, 2010

Find Linux installed date...

rpm -qi basesystem

Name        : basesystem                   Relocations: (not relocatable)
Version     : 8.0                               Vendor: Red Hat, Inc.
Release     : 5.1.1                         Build Date: Wed 12 Jul 2006 12:38:04 PM IST
Install Date: Mon 03 May 2010 03:05:35 PM IST      Build Host: ls20-bc2-14.build.redhat.com
Group       : System Environment/Base       Source RPM: basesystem-8.0-5.1.1.src.rpm
Size        : 0                                License: public domain
Signature   : DSA/SHA1, Thu 18 Jan 2007 09:03:57 PM IST, Key ID 5326810137017186
Packager    : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
Summary     : The skeleton package which defines a simple Red Hat Linux system.
Description :
Basesystem defines the components of a basic Red Hat Linux system (for
example, the package installation order to use during bootstrapping).
Basesystem should be the first package installed on a system, and it
should never be removed.

Sunday, September 26, 2010

HAPPY BIRTHDAY GOOGLE

Wish you Happy Birth Day GOOGLE. My total IT career dependent with you. :D

 

THERE IS NO ME WITHOUT YOU!

 

Thanks

 

Wednesday, September 22, 2010

Active RSS feeds in MS outlook to read posts in mislanka blog

01.   Got o RSS feeds in Microsoft Outlook

02.   Right click and select “Add a New RSS feed”
03.    

04.   Type http://mislanka.blogspot.com/feeds/posts/default and press Add button.
05.   If you use proxy to browse internet please set proxy settings in Internet Explorer.
06.   Then it will download new post when we update the blog.



Tuesday, September 14, 2010

Disk space not updating in linux df -h after deleted files

If the partition used space increase in to 100%, we had to delete unnecessary file to have more space.

But after deleting the files df –h command not updating the actual space details and we are unable to create any file.

So solve this issue we need to follow following trick.

 

ls -ld /proc/*/fd/* 2>&1 | fgrep '(deleted)'

 

It shows the files that are deleted but  still in use by a running process.
 
lrwx------ 1 root root 64 Sep 15 10:45 /proc/2958/fd/12 -> /tmp/ibSAlc0V (deleted)
lrwx------ 1 root root 64 Sep 15 10:45 /proc/2958/fd/5 -> /tmp/ibUpZrp7 (deleted)
lrwx------ 1 root root 64 Sep 15 10:45 /proc/2958/fd/6 -> /tmp/ibUmDSgz (deleted)
lrwx------ 1 root root 64 Sep 15 10:45 /proc/2958/fd/7 -> /tmp/ibcLKj80 (deleted)
lrwx------ 1 root root 64 Sep 15 10:45 /proc/2958/fd/8 -> /tmp/ibubhw0s (deleted)
lrwx------ 1 root root 64 Sep 15 10:45 /proc/32645/fd/0 -> /dev/pts/1 (deleted)
lrwx------ 1 root root 64 Sep 15 10:45 /proc/32645/fd/1 -> /dev/pts/1 (deleted)
lrwx------ 1 root root 64 Sep 15 10:45 /proc/32645/fd/2 -> /dev/pts/1 (deleted)
lrwx------ 1 root root 64 Sep 15 10:45 /proc/32645/fd/255 -> /dev/pts/1 (deleted)
lrwx------ 1 root root 64 Sep 15 10:44 /proc/6788/fd/0 -> /dev/pts/38 (deleted)
lrwx------ 1 root root 64 Sep 15 10:44 /proc/6788/fd/1 -> /dev/pts/38 (deleted)
lrwx------ 1 root root 64 Sep 15 10:44 /proc/6788/fd/2 -> /dev/pts/38 (deleted)
 
so we need to stop or restart that process to update the disk space.
 
 

ps ax | grep 2958

 

kill -9 2958

 

 

Sunday, September 5, 2010

Add date and time to Linux command history ..

Add following line to /etc/bashrc

01.     Vim /etc/bashrc

02. export HISTTIMEFORMAT="%h/%d - %H:%M:%S "

03. save and quit

04. logout and login

05. history

  995  Sep/06 - 10:46:24 w

  996  Sep/06 - 10:46:24 w

  997  Sep/06 - 10:46:24 top -c

  998  Sep/06 - 10:46:30 date

  999  Sep/06 - 10:46:34 history