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