how to logout in linux kali code example Example 1: how to logout in linux kali gnome-session-quit Example 2: force-logout user linux pkill -KILL -u {username}