LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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, 01: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, 02:03 PM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 8,316
Blog Entries: 13

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

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
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, 07:10 PM   #4
berndbausch
Senior Member
 
Registered: Nov 2013
Location: Tokyo
Distribution: A few
Posts: 3,959

Rep: Reputation: 1109Reputation: 1109Reputation: 1109Reputation: 1109Reputation: 1109Reputation: 1109Reputation: 1109Reputation: 1109Reputation: 1109
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 11:17 AM
LXer: How to kill a process in Linux - kill, killall, pkill, xkill LXer Syndicated Linux News 0 04-02-2013 01:01 PM
Questions about background/foreground running processes Vexe Linux - General 7 03-06-2013 09:24 AM
what does kill -9 and killall -9 do and don't? fantasy1215 Programming 2 02-26-2013 05:57 AM
Using killall to kill mysql processes? SirTristan Linux - Newbie 3 08-14-2009 04:25 PM

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

All times are GMT -5. The time now is 10:22 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration