Labels

Search This Blog

Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

Monday, April 30, 2012

How To Determine Running Linux is Vmware or not

There are several ways to determine that running system is vmware or not. 
  1. dmidecode -s system-manufacturer
  2. view  /sys/class/dmi/id/sys_vendor
  3. lspci | grep -i vmware
  4. grep -i vmware /proc/scsi/scsi /proc/ide/*/model
  5. dmesg |grep Vmware
  6. rpm -qa | grep -i vmware


Change Date and Time in Linux

To change date and time in Linux use command below

date -s "MM/DD/YYYY HH24:MM:SS"

Example : To set 20 November 2011 Hour 11:25:23 AM
date -s "11/20/2011 11:25:23"

Kill Spesific User Process in Linux

To kill spesific user's all process use command below

kill -9 `ps -ef | grep <osuser> | grep -v grep | awk '{print $2}'`

replace <osuser> with related user name, example oracle, applora etc.