Each program has its own id (PID)
`~$ ps`
- to see processes r un by other users, like system processes
`~$ ps aux`
- system statistics
`~$ top or htop` (colored)
### Kill a process
`~$ kill processPID`
- SIGTERM - allow to do some cleanup before killed
- SIGKILL - dont allow any cleanup
- SIGSTOP - stop/suspend a process
### Getting processes/services to start on boot
`~$ systemctl [option] apache2`
- systemctl allows us to interact with the systemd process
- options:
- start, stop, enable(onboot), disable(onboot)
### Background and foregrounding
ctrl + z to background a process in terminal
`~$ fg`
- bring back into foreground
links: [[_LinuxTerminalCMDIndex]]
tags: #linux #terminal #CMD