Sunday, September 4, 2011

How to kill Mac OS-X login session via terminal

Often times some of our customer call us stating that they lost their screen sharing session and cannot reconnect.

This usually means that the user session hung, but it is not impacting the systems operability.

To restore the session:

ssh to the system


ps -Ajc | grep loginwindow

Take note of the PID and type

sudo kill

Screen sharing should now be operational.

Thank you



  1. This usually means that the user session hung, but it is not impacting the systems operability.

  2. One thing i like about macosx is the ability to type commands similar to unix. Almost all unix commands work on macosx. If google chrome is hogging your mac's memory simply type pkill Google Chrome and chrome goes aways. Simply superb!

  3. Really nice post. Unix is a multiuser and multi tasking operating system at the same time. Unix Training in Chennai offering real time Unix course at reasonable cost.

  4. Easysite to create your own website a free website with Customize with' free website builder, no coding skills needed. Choose a design, begin customizing and be online today!

  5. Also great blog here with all of the valuable information you have. Keep up the good work you are doing here. web hosting in Nigeria

  6. Easy setup and maintenance tools to keep the website up to date. I have had good phone support when needed and very quick response to requests.


  7. Great survey. I'm sure you're getting a great response.
    web hosting in Nigeria

  8. It is really a great and useful piece of info. I’m glad that you shared this helpful info with us. Thank you for sharing. IEEE Projects in Chennai | Final Year Ece Project Centers Chennai

  9. meprojects centre provides me projects chennai and give summer course for java, dotnet,matlab, embedded, iot, php&mysql courses are available. me project centers chennai courses for ECE/EEE students.

  10. I found some useful information in your blog.It's very really nice article ME Project Centers Chennai | IEEE Php Projects in Chennai

  11. Great Article… I love to read your articles because your writing style is too good, its is very very helpful for all of us. Do check Six Sigma Training in Bangalore | Six Sigma Training in Dubai & Get trained by an expert who will enrich you with the latest trends.

  12. emails with the same comment. Is there any way you can remove people from that service? Thanks.
    safety courses in chennai