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...


which command is used to stop a running process in unix?

Answers were Sorted based on User's Feedback



which command is used to stop a running process in unix?..

Answer / manikandant

If you want stop the process, use the below command.

press: ctrl+z

Is This Answer Correct ?    28 Yes 3 No

which command is used to stop a running process in unix?..

Answer / saroj das

kill -9 pid its forcefully stop kill the curent process

Is This Answer Correct ?    22 Yes 5 No

which command is used to stop a running process in unix?..

Answer / rhino

Hi Sivakumar,

When we know the answer it would be good to post it , As
some of them might not able to find the answers and this
site would help them to get their issues addressed. Here is
how this goes

stop <pid> -- is the command to stop , Below example
explains this better

Ex Prog. to print 10000 numbers

#!/bin/sh
x=1
while [ $x -le 10000 ]
do
echo "No is. $x"

x=`expr $x + 1`
done

If you wish to stop this , Login to the different a/c get
the pid of the prog running as this will take some time to
execute you find sufficient time to do this

Login to other session on the same directory -- give ps -a
and check the prog. running stop it using below

ps -a ---> is the command used to check all the processes
running

stop 17872 (17872 is the pid of the program -- This will
stop the prog. as below

o/p :

No is. 8128
No is. 8129
[1] + Stopped (SIGSTOP) ./prnNo1

Is This Answer Correct ?    3 Yes 1 No

which command is used to stop a running process in unix?..

Answer / rhino -- rhino_sh@rediffmail.c

Would be worth to add how to resume forgot to place this

give the below

bg <pid> Ex : bg 17872

sample o/p :

No is. 9999
No is. 10000
^C
[1] + Done ./prnNo1

Is This Answer Correct ?    3 Yes 3 No

which command is used to stop a running process in unix?..

Answer / rao

Kill -9 (PID)

Is This Answer Correct ?    0 Yes 0 No

which command is used to stop a running process in unix?..

Answer / c sivakumar. kumarsiva46@yaho

First of all i like to appreciate all the three Answerers
for theire initivative to have answered the question.
However the answers are not complete. In this first two
cases the command does not stop the process but kills it,
which means to restart the process we have to re-execute
the script. In the 3rd case the command stops only that
process which is activelly running in our terminal this
command can not be used to stop a process which is running
elsewhere. I know the answer to above question. But i
would like you guys to research over this and find out.
Please contact me for further queries.

Is This Answer Correct ?    3 Yes 5 No

which command is used to stop a running process in unix?..

Answer / hitz

Kill -20 pid

Is This Answer Correct ?    0 Yes 4 No

which command is used to stop a running process in unix?..

Answer / mohan

kill 9 pid

Is This Answer Correct ?    9 Yes 14 No

Post New Answer

More Unix Commands Interview Questions

How does the user view the contents of a text file in UNIX?

9 Answers   IBM,


What is the basic difference between unix and windows operating systems?

43 Answers   Bopro, College School Exams Tests, CTS, IBM, IT-Kids, Priyadarshini, Sybian Technologies, Tolani Maritime,


How would you find the size of a file or directory?

1 Answers  


How do you find files in Unix?

2 Answers  


What is the size of time_t?

0 Answers  


Write a command that will output the sorted contents of a file named in.txt and place the output in another file named out.txt, while at the same time excluding duplicate entries.

1 Answers  


Which command will you use to change the permissions on file?

7 Answers  


if we create a file, in that 10 rows(means 1,2,....9,10 like). i want 7 row exactly, which command use in unix? plz send this question.

28 Answers   TCS,


How to know a process is a zombie or orphan process?

3 Answers   Perot Systems,


What is pid?

4 Answers  


When the shell is reading the command line what is the difference between text enclosed between double quotes ( ” ) and text enclosed between signal quotes ( ’ )?

3 Answers  


what is the functionality of kernel in unix architecture?

13 Answers   HCL,


Categories