Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

kill user tty sessions terminal

# find the user session tty
w
# find the pid of the tty
ps -ft <tty>     (process select using <tty> and format)

kill <pid>  or  
kill -9 <pid> or pkill -9 -t <tty>  (-9 is for forceful)
 
PREVIOUS NEXT
Tagged: #kill #user #tty #sessions #terminal
ADD COMMENT
Topic
Name
3+5 =