To extend the sudo password timeout session on a Linux system, we need to modify the sudoers file. Example of a sudoers file that we have to modify :

sudo visudo
Find the line that begins with Defaults env_reset and add the timestamp_timeout option :
Defaults env_reset,timestamp_time...
The ss command is a powerful utility used to display socket statistics, providing detailed information about network connections, including TCP, UDP, and Unix domain sockets. ss is valuable for network troubleshooting, identifying open ports, monitoring connections, and analyzing network traffic.
...In Linux, everything is considered a file, including devices and directories. The command lsof (LiSt Open Files) displays open files and the processes that are using them. In case a process holds a file open and prevents closing it, the lsof command helps identifying and killing it as needed.
The w command gives information about currently logged in user such as ip, login times, load average :
w
08:06:55 up 3 days, 1:30, 1 user, load average: 0.00, 0.00, 0.00
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
root pts/0 197.27.57.174 08:06 2.00...