Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How do you stop a running process?

Answer Posted / c sivakumar

If we want to kill a process first we have to know the
process id. We cam come to know ps or top command.
Then we have to identify the respective proce's child
process with the help of ptree command. Then we can give
kill id-1 id-2

example:- Take an example while using ps command

# ps
PID TT S TIME COMMAND
2243 pts/16 S 0:00 -csh

now we identified the PID no (2243) with the help of above
said ps command.

Then we have to give following command to know child
process_-

ptree 2243

1498 /usr/local/sbin/sshd
2062 /usr/local/sbin/sshd
2199 /usr/local/sbin/sshd
2205 -csh
2243 -csh
11535 ptree 2243

Now we can kill above said all ids.

kill 1498 2062 2199 2205 2243 11535

Is This Answer Correct ?    1 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is awk good for?

1125


Describe the zip/unzip command using gzip.

1146


Enlist some filename manipulation commands in unix.

1151


How do I search for a file in unix command?

1010


What does touch command do in unix?

1406


Who command in unix operating system?

1123


What is “chmod” command?

1149


What is the function of grep command in unix?

1166


What is the use of tee command?

1140


What happens when we execute a unix command?

1123


Who wrote grep?

1047


Which unix command to make a new directory?

1126


What is s and g in sed command?

1105


Name the various commands that are used for the user information in unix.

1077


Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?

1209