LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 01-11-2005, 03:54 AM   #1
u4u
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
kees-jan
Member
 
Registered: Sep 2004
Distribution: Debian, Ubuntu, BeatrIX, OpenWRT
Posts: 273

Rep: Reputation: 30
First you type
Code:
w
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
Code:
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
Code:
 kill 123
or
Code:
 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.

Groetjes,

Kees-Jan
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:39 AM.

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