Processes
Every program on linux runs as a process.
ps
lists processestop
real time list (htop
is an improved version)
Sarting processes #
Often you run a command which starts a process.
To spawn a process in the background & hide the output you can use:
nohup myprogram > /dev/null 2>&1 &
Killing processes #
The commands kill [pid]
pkill [name]
killall [name]
can kill processes.
If a process won't stop you can use the -9
flag to force kill it.
TODO: Signals