how to check number of active sessions in linux code example Example: list all ssh connections ubuntu ss | grep -i ssh