Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a problem and I can't seem to figure out how to kill these additional users sessions I have running. I think each time I stop my main.py file that runs my last.fm audio streaming it keeps a user session running. It would makes sense since I've started the main.py and killed it two or three times now. Here are my users sessions I want to kill all but the :0 tty session I believe right? Thanks for any/all help.
I have a problem and I can't seem to figure out how to kill these additional users sessions I have running. I think each time I stop my main.py file that runs my last.fm audio streaming it keeps a user session running. It would makes sense since I've started the main.py and killed it two or three times now. Here are my users sessions I want to kill all but the :0 tty session I believe right? Thanks for any/all help.
:0 is most likely for your X sessions, yes, it records you logged in when you have X running. On top of that, you most likely have pts/1 for your KDE session, so don't kill that one. And the last one on pts/0, that is probably the terminal you have running to run this command, yes, that records you as logged in as well. My suggestion, don't kill any of these if you want your system to run properly or you'll find yourself logging yourself out by kill these sessions.
:0 is most likely for your X sessions, yes, it records you logged in when you have X running. On top of that, you most likely have pts/1 for your KDE session, so don't kill that one. And the last one on pts/0, that is probably the terminal you have running to run this command, yes, that records you as logged in as well. My suggestion, don't kill any of these if you want your system to run properly or you'll find yourself logging yourself out by kill these sessions.
Ok, it seemed strange to me because I've never noticed it before on any of my previous linux distros. I'm on my Linux Knoppix laptop right now and it only shows ONE user session. And I have KDE 3 running with the terminal session. I'll have to check my SUSE next time on a fresh boot. Here's my laptop.
Code:
root@nuxbox:/etc/ssh# users
james
root@nuxbox:/etc/ssh# w
04:06:20 up 1 day, 14:58, 1 user, load average: 1.46, 0.65, 0.37
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
james :0 - Tue13 ?xdm? 5:24m 0.13s /bin/sh /usr/bin/x-sessi
root@nuxbox:/etc/ssh#
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.