Showing posts with label Operating System Techniques. Show all posts
Showing posts with label Operating System Techniques. Show all posts

Wednesday, December 1, 2010

How to find and kill process in Windows


How to find and kill process in Windows:
How to find PID of the Process:
Open the Command Prompt or click on run and type cmd.
Type           tasklist /v
It should give you the list of processes and their PID’s.
Otherwise,  press Ctrl+Alt+Delete. It will open the Task Manager.
In the  Task Manager go to View -> Select Columns.. and select PID.
How to Kill Process in Windows:
If you know the name of the process then open the Command Prompt and type:
taskkill /IM notepad.exe
If you know the PID of the process, type following command in the Command Prompt:
taskkill /PID 827
If you want to all the Processes owned by a specific user, let say you want to kill all the process for the user QASIM, type the following in your Command Prompt:
taskkill /F /FI "USERNAME eq QASIM"
Cheers

Thursday, November 11, 2010

How to find and kill session in Unix

How to find and kill session in Unix
Steps:


fuser /path-t0-file/libwtc8.sl

it should give the PID of the process that has opened the file libwtc8.sl

kill it

Creating a Symbolic Link in Linux

type which java to get the current location of the link, remove the link with rm then recreate the link pointing to the new version.

#which java
/usr/bin/java
#ls -ld /usr/bin/java
lrwxrwxrwx 1 root other 16 Apr 8 12:41 /usr/bin/java -> ../java/bin/java
#rm /usr/bin/java
#ln -s /usr/bin/j2re1.4.2_17/bin/java /usr/bin/java
#ls -ld /usr/bin/java
lrwxrwxrwx 1 root other 30 May 28 15:30 /usr/bin/java -> /usr/bin/j2re1.4.2_17/bin/java

Wednesday, October 27, 2010

Change IP address in Linux

Change IP address
Solution 1:
You can change ip address using ifconfig command itself. To set IP address 192.168.15.50, enter command:
# ifconfig eth0 192.168.15.50 netmask 255.255.255.0 up
# ifconfig eth0
Solution 2:
Make changes in following files
/etc/sysconfig/network
/etc/sysconfig/network-scripts/ifcfg-eth0
/etc/hosts
/etc/init.d/network restart

Solution 3:

Open the terminal with root user and type setup, in the setup go to the Network Configuration and insert the IP address accordingly.later on execute
/etc/init.d/network restart