End Task and New Task in linux.

Everything about X, Gnome, KDE, ... and everything running on it

End Task and New Task in linux.

Postby hack3rcon » 2020-08-20 10:04

Hello,
In the Windows OS, you can end a program and with the New Task button start it again. How about Linux?
With "kill -9 " Process ID" " we can stop a program but how about start it again? Any command?

Thank you.
hack3rcon
 
Posts: 424
Joined: 2015-02-16 09:54

Re: End Task and New Task in linux.

Postby cuckooflew » 2020-08-20 13:46

Your welcome.

Key words =
Code: Select all
With "kill -9 " Process ID" " we can stop a program but how about start it again?


Hint:
In this tutorial we see how to manage processes with the Linux command line. ... If you close the xload window, the xload program terminates and the prompt returns. ... we are going to launch the xload program again, but this time we will put it in ... With ps, you are given a process id (PID). ... [me@linuxbox me]$ kill -9 2931 ...
Please Read What we expect you have already Done
Search Engines know a lot, and
"If God had wanted computers to work all the time, He wouldn't have invented RESET buttons"
and
Just say NO to help vampires!
cuckooflew
 
Posts: 683
Joined: 2018-05-10 19:34
Location: Some where out west

Re: End Task and New Task in linux.

Postby Head_on_a_Stick » 2020-08-20 17:27

SIGHUP might work and some programs employ SIGUSR1 or SIGUSR2 for restarts:
Code: Select all
pkill -hup -x $process
pkill -usr1 -x $process
pkill -usr2 -x $process

^ Replace $process with the actual name of the process.

EDIT: see signal(7) for a full list of signals.
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 12495
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: End Task and New Task in linux.

Postby hack3rcon » 2020-08-21 16:04

How about start it again? Just write the program name?
hack3rcon
 
Posts: 424
Joined: 2015-02-16 09:54

Re: End Task and New Task in linux.

Postby cuckooflew » 2020-08-21 17:22

You could do it that way as well, type in the program name, and hit enter.
Please Read What we expect you have already Done
Search Engines know a lot, and
"If God had wanted computers to work all the time, He wouldn't have invented RESET buttons"
and
Just say NO to help vampires!
cuckooflew
 
Posts: 683
Joined: 2018-05-10 19:34
Location: Some where out west


Return to Desktop & Multimedia

Who is online

Users browsing this forum: No registered users and 14 guests

fashionable