LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-15-2019, 12:08 PM   #1
mintner
LQ Newbie
 
Registered: Sep 2019
Posts: 3

Rep: Reputation: Disabled
killall sleep to kill both foreground and background sleep processes?


Can I use killall sleep to kill all the foreground and background sleep processes or do I need to follow individual steps like
#kill%
#kill%1
 
Old 11-15-2019, 01:03 PM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,883
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
You should try each of various ways, the results will be very evident.
 
Old 11-15-2019, 05:17 PM   #3
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,947

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
The killall command, despite its name, doesn't necessarily kill (terminate) anything.

Code:
killall -s STOP command
will pause all your processes running 'command'
Code:
killall -s CONT command
will resume all your processes running 'command'
Code:
killall -l
Will give a list of possible killing actions...
 
Old 11-15-2019, 06:10 PM   #4
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by mintner View Post
Can I use killall sleep to kill all the foreground and background sleep processes
Yes if you are root. To be safe, use killall -9.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
System call killall (that kill all user processes) s@linux Linux - Kernel 6 05-05-2016 10:17 AM
LXer: How to kill a process in Linux - kill, killall, pkill, xkill LXer Syndicated Linux News 0 04-02-2013 12:01 PM
Questions about background/foreground running processes Vexe Linux - General 7 03-06-2013 08:24 AM
what does kill -9 and killall -9 do and don't? fantasy1215 Programming 2 02-26-2013 04:57 AM
Using killall to kill mysql processes? SirTristan Linux - Newbie 3 08-14-2009 03:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration