Unix

Topic: Basic

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?

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

Browse random answers: