I know for killall
command with -y
argument and process name.
But I need command to kill all processes younger than some time, without knowing their names.
Something like:
killall -y 20m *
I know for killall
command with -y
argument and process name.
But I need command to kill all processes younger than some time, without knowing their names.
Something like:
killall -y 20m *
Use:
Or use a combination of
ps
andkill
:First we find the id of process that are running less than of 5 minutes using:
Then we kill them using
kill
.Base of command comes from here.