This is done by reading the /dev/pts (pseudo-terminal) directory and finding modification times for the terminals.
Hii ni kufanyika kwa kusoma Dev / / pts (Pseudo-terminal) directory na kutafuta mara ya muundo kwa ajili ya vituo.