linux disconnect user session code example Example: kill user sessions in centos7 pkill -KILL -u {username}