CoolInterview.com - World's Largest Collection of Interview Questions
Send Free SMS
 Interview Questions  
 Our Services  


INTERVIEW QUESTIONS OPERATING SYSTEMS UNIX COMMANDS DETAILS
Question :
Using the commands ps, cut, tr and kill, along with pipes, write a command that will find all sleep processes running on the system and kill them?

Posted by: archie Andrews on 1/12/2008

Contact archie Andrews  Contact archie Andrews
Category Unix Commands Interview Questions
Rating (4.6) By 27 users
Added on 1/12/2008
Views 1257
Rate it!
Answers:

ps: check process status
Syntax: ps ?option
Option:
e: list all currently running processes (A for Linux)
f: gives full listing (give ancestry for Linux)
l: gives long listing
u username: list processes for the user only
S: sleeping
O: running
R: on run queue
Z: zombie (parent didn?t wait for death of its child
T: stopped or suspended




 Posted by: subramanian    

Contact subramanian  Contact subramanian

ps -s

will find all the sleep process.

kill "process ID"

will kill all the process.



 Posted by: monika    

Contact monika  Contact monika


If you have the better answer, then send it to us. We will display your answer after the approval.
Name :*
Email Id :*
Answer :*
Verification Code Code Image - Please contact webmaster if you have problems seeing this image code Not readable? Load New Code
Process Verification  Enter the above shown code:*
Inform me about updated answers to this question

   
Related Questions
View Answer
What is the use of the command "ls -x chapter[1-5]"

View Answer
What is relative path and absolute path.
View Answer
Explain kill() and its possible return values.
View Answer
What is a pipe and give an example?
View Answer
How to terminate a process which is running and the specialty on command kill 0?
View Answer
What is redirection?
View Answer
What are shell variables?
View Answer
How to switch to a super user status to gain privileges?
View Answer
How does the kernel differentiate device files and ordinary files?
View Answer
How many prompts are available in a UNIX system?
View Answer

Please Note: We keep on updating better answers to this site. Subscribe to our newsletter to get notified when better answer is posted.

Notify me when better answer is posted!
Email:

View ALL Unix Commands Interview Questions

User Options
Sponsored Links


Copyright ©2003-2010 CoolInterview.com, All Rights Reserved.
Privacy Policy | Terms and Conditions
Page URL: http://www.coolinterview.com/interview/12729/default.asp?cachecommand=bypass


Download Yahoo Messenger | Placement Papers| FREE SMS | ASP .Net Tutorial | Web Hosting | Free SMS | Dedicated Servers | Joke of the Day

0.91