linux logout user from terminal code example Example: force-logout user linux pkill -KILL -u {username}