Thursday, 29 January 2015

How to Share the Folder with Guest as Window OS and Linux on VMware

First of all do the following shown setting for the virtual machine
A folder from E drive has been added here from add button
In virtual machine this folder is automatically mounted in /mnt/hgfs
you can check this : #cd /mnt/hgfs
                              #ls
                              # Ubunto


How to KILL a Logged in user in LINUX

pgrep -u username
ps -fp $(pgrep -u username)
killall -KILL -u username
userdel -r username

Second Method:
ps -u username  #it will give you PID (personal Identity Number )of the user
kill -s 9 <PID number>











Tuesday, 27 January 2015

Difference between df-h and fdisk command

df -h displays all of the mounted partitions. fdisk -l displays all of the partitions that exist on your disk.
Apparently there are some partitions which exist, but which are not mounted

fdisk shows you your attached disk spindles and how they are partitioned.
df on the other hand shows you the free space on filesystems. if you know a little bit of Linux or any variant of UNIX for that matter, you should know the difference between a filesystem and a disk device