Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's 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.
Hello,
Some times I run into trouble, where a game in X opens in full screen and I can not kill it.
In MS Windows I would first try ALT-TAB to get out from that program, and if that did not work I kill the program with ALT-F4.
In linux & X this does not help at all.
I found the ctrl-alt-f2 where I can issue a "shutdown -r now" but that is a bit over kill I think?
But is it possible to get up a "task manager" like think from where one could kill a non working full screen program? Or some other way to get out from the situation, other than rebooting the machine?
I am not sure (because right now im under Windows)
but I recall the task manager being called like CTRL+F10 or CTRL+ESC
you might wanna try some combinations using the CTRL and upper keys
Yes, just push ctrl + alt + F1 or F2.... F6 and it will take you to a console. Type ps -aux to list all the processes running and then kill the one you like. If you wanna take just the x windows down do init 3 as root and startx to start the x windows back up. If you are in console and want to come back to your x windows session you can do ctrl + alt + F7. Linux gives you better control over everything as compared to windows
to elaborate on what ksgill wrote, you actually kill the process by using the "kill" command
Code:
kill 3244
to kill process number 3244, for example. I haven't tried a Linux distro of *BSD yet (of the 20+ that I've tried) that doesn't have top as part of the default base system. It lists the processes and their resource usage, like the Win taskmanager does. This is also a CLI program, so you can use it from a console as well. Read its man page for info on how to use it
Code:
man top
Your important command key for killing a process is "k".
When I have a game in full screen (UFO XMAS SPECIAL) the ctrl key combinations does not work, except for the ctrl-alt-backspace that does close X (not just the full screen program)
I have not tried to kill the process from an other console though. I'm sure it will work though.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.