I am using a lot the screen session in ubuntu. I know the common way to exit a screen session is detaching using ctrl+a + d combination. The thing is, it is just detaching the screen session and not fully terminating it. This can be problematic as the serial port is still caught by the session and if i want to fully terminate it i have to find the PID and kill it.
Is there a more convenient way to exit the screen session so it will truly close without leftovers?
Currently I am looking for the PID using ps | aux
and kill <PID>
I am looking for better solution to fully terminate screen session
Elics is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.