RLG : Gestion de programmes
Terminate a process
kill {process_ID}
nohup & disown
nohup {process-name} &> /dev/null & # Start a detached process, e.g., espanso
nohup: No hangup. Process continues to execute after terminal closure.
&: Execute in background. The terminal continue to be available for new commands while this execute
disown: The process is completely disattached from the terminal. Use with CAUTION as this makes it exponentially harder to manage the process.
Processes in terminals
# View all processes attached to the terminal, including background ones.
jobs -l
Processes and ports
sudo lsof -i :<port-number>
sudo netstat -tulpn | grep <port-number>
Member discussion