Thursday, March 7, 2013

How to invoke the Linux Terminal in LINUX when a process becomes unresponsive?

Q. If a process becomes unresponsive in WINDOWS then we press "alt+ctrl+del" to invoke the task manager & then terminate the process.Is there any similar way to invoke the Linux Terminal so that we can end a process by the 'kill' command when it becomes unresponsive?Any help would be gladly accepted.

A. Whether you are in an x-windows session or working at the console command line, an equivalent in Linux would be to select a new virtual terminal using the key sequence CTRL-ALT-F-Key.

For example, from the console, CRTL-ALT-F1 will open virtual tty1, if it has not been disabled by configuration. Once in the screen for the virtual terminal is displayed you can log in with appropriate permissions to use 'ps' to determine the process that you need to kill as you would normally do as indicated in your question. To return to the console use CTRL-ALT-F7.

For completeness, if you are at the command line you could begin a program by running it in the background, so you can do other things during it's execution. If a program that is running, but which is not in the background, is stuck your first step should be to try CTRL-Z, to terminate it. If that fails try a virtual terminal.

As has been suggested, you could also access the system remotely if you have other systems on the network that could be used. Doing so, requires appropriate services, such as 'sshd', be running in advance of the problem. Similarly, you should experiment with the virtual terminal feature in advance of a problem to assure that it has not been disabled and so you can see how it works.

hth

How do I connect to my Linux computer?
Q. I want to be able to use some remote console to connect to my Linux terminal and send commands, what kind of server do I need? Is there a client for Windows?
I downloaded PuTTy but what server do I need? Midnight Commander is just a file manager, I need full access to my terminal.
Ok, I found telnetd. Thanks all !

A. if you just want to access a terminal session then configure SSH and use PuTTY to connect. If you want full control of your Linux desktop, then use VNC (comes in both Server and Client components and is cross platform - so yes, it does support Windows as a client)

How do i get color back into my linux terminal?
Q. I recently changed the color of my linux terminal from the standard black text and white background to a black background and light blue text. When the default colors were used directories and certain file types would show up in different colors, but when i changed the scheme it took away the colors. is there any way to get them back with a command or setting? Thanks in advance.

A. You will want to set the environment variable LS_COLORS in your .bash_profile or .bashrc file.

Check out the following web site that explains the variable and all of its parameters:



Nec Projector Review

Plastic Shed Reviews

Ati Graphic Reviews

Nurse Uniforms Reviews

Cabochons Reviews

Inflatable Water Slides Reviews

Barcode Scanner Reviews

No comments:

Post a Comment