Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 01-11-2005, 03:54 AM   #1
LQ Newbie
Registered: Aug 2003
Location: Pune (india)
Posts: 15

Rep: Reputation: 0
Unhappy how to log out from all instances of unix?

i have log in to my unix home directory through telnet from windows machine.
While working with vi editor, suddenly it stopped responding to any keystroke. So i have closed the telnet window by clicking on "X" on top right corner. so that window got closed but the instance of unix is still alive.
So next time i have log in to unix through telnet. Now i have typed the command 'who' and it shows me two instances of the same user. One is previous and second is that i have just log in. Now if i want to log out from both the instances of unix then how can i do it? Because whenever i typed 'exit' or cntrl D it will exit from current instance but that previous is always alive.
Please help me as early as possible.
Old 01-11-2005, 07:22 AM   #2
Registered: Sep 2004
Distribution: Debian, Ubuntu, BeatrIX, OpenWRT
Posts: 273

Rep: Reputation: 30
First you type
to list the users logged in. Observe the column "TTY". Remember the values printed there for each instance you want to log out. Next, execute
ps aux
This also has a column "TTY". Find the process ids (columnt "PID") of the instances you want to kill. Next, you can kill them by typing
 kill 123
 kill -9 123
where 123 is an example process id, which should be replaced with the correct ones.

Note that the missing session is harmless and will eventually (after one minute or so) go away by itself, so the above exercise is pretty much useless.




Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating a log file in unix?? linux_dejan Programming 3 09-03-2004 10:56 PM
UNIX (Linux, BSD, etc) Programming :: UNIX kuphryn Programming 8 04-04-2004 11:50 PM
Unix log file as source for Oracle DB tornadoburn Programming 1 12-12-2003 06:47 PM
Why did you experienced users of Unix change to unix over Windows? Laptop2250 Linux - General 11 10-28-2003 11:51 AM
How to schedule unix script periodically from unix os level??? gopi_20us Programming 2 03-11-2002 06:45 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:24 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration