-
Notifications
You must be signed in to change notification settings - Fork 1
Shell task control
Jennings Zhang edited this page Jan 10, 2018
·
1 revision
-
command1 &runscommand1in the background. -
jobslists the current jobs in the environment. - CTRL-Z sleeps a command with SIGSTOP.
-
bg [job_id]sends a job to the background. -
fg [job_id]gives a job foreground control (input stream)
CTRL-C usually cancels the foreground command by sending SIGINT (C) or a KeyboardInterrupt (Python).
If you have zombie processes or frozen applications, simply find them and shut them down through the task manager (gnome-system-monitor). Or,
-
psdisplays information about the current process (probably the shell) and its child processes (background processes executed by the shell).-
ps -gdisplays information about all running groups of commands.
-
-
pidof PROGRAMreports thepidof that program. -
kill -kill PIDorkill -9 PIDsends SIGKILL (which cannot be caught or ignored), terminating the process. -
killall PROGRAMends processes by name. -
toporhtopare high-level text-mode task managers.