This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Linux / UNIX and the fly likes problem with k-shell Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Engineering » Linux / UNIX
Reply Bookmark "problem with k-shell " Watch "problem with k-shell " New topic
Author

problem with k-shell

Lakshmi Geetha
Greenhorn

Joined: Mar 06, 2001
Posts: 16
hi,
i did a grep for a string in a directory which has some binary files.
my terminal got corrupted. the display is now totally in greek n latin.
how can i recover ?
thanks
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6919
try typing
reset

Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
Brad Ford
Ranch Hand

Joined: Mar 22, 2001
Posts: 40
Are you in X-windows or just at the prompt? If your at the prompt, you can jump to another console using your function keys - F1-6, I think. From there, you can shutdown and start again.
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6919
You are joking, right ? You should never have to shutdown a running Linux system for something as trivial as this - that's a Windows approach. If you only meant shutdown that terminal session then you really ought to be more careful with your terminology.
Sorry if this came out like a flame, it's just that I've seen too many people reach for the reset button every time an otherwise perfectly healthy Linux system does something slightly strange.
Brad Ford
Ranch Hand

Joined: Mar 22, 2001
Posts: 40
You are right Frank. I should have been more specific. From the new terminal, one could use a kill on the hung terminal. The only times I've ever had to restart Linux via the power button have been when X windows hangs in gnome/kde2 and ctrl-alt-backspace doesn't do the trick.
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6919
For that situation, I have a serial line to another PC with a terminal emulator. I guess that's a bit tough if you only have the one machine there though
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: problem with k-shell
 
Similar Threads
Cant use object from another class
Posting to bump up my count...
WA #1.....word association
The x900 effect ?
Text box value is not being completely filled with request attribute