Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Ubuntu User (http://www.linux-archive.org/ubuntu-user/)
-   -   Bizarre terminal behavior (http://www.linux-archive.org/ubuntu-user/607845-bizarre-terminal-behavior.html)

Mark Widdicombe 12-08-2011 07:39 AM

Bizarre terminal behavior
 
On 8 December 2011 11:38, Patton Echols <p.echols@comcast.net> wrote:

On 12/07/2011 11:37 PM, Mark Widdicombe wrote:




On 8 December 2011 10:37, Patton Echols <p.echols@comcast.net <mailto:p.echols@comcast.net>> wrote:




* *Greetings all,



* *Tonight I opened a terminal session and used [ctrl]+r to search a

* *prior command. When I keyed the first letter, the terminal window

* *was filled with the characters below. I had to [ctrl]+c to return

* *to normal usage. Any thoughts?



* *Oh, 10.4, on an asus netbook



* *Here is the characters copied and pasted from the terminal window:



* *patton@mycroft:~$

* *(reverse-i-search)`a': �^P�<��(�̤�{9]��xmh�^Ni���Q^Q@}�

* *xxmh�^Ni���Q^Q@}� � xxmh�^Ni���Q^Q@}� xxmh�^Ni���Q^Q@}�

* *xxmh�^Ni���Q^Q@}� � xxmh�^Ni���Q^Q@}� xxmh�^Ni���Q^Q@}�

* *xxmh�^Ni���Q^Q@}� � xxmh�^Ni���Q^Q@}� xxmh�^Ni���Q^Q@}�

* *xxmh�^Ni���Q^Q@}� � xxmh�^Ni���Q^Q@}� xxmh�^Ni���Q^Q@}�

* *xxmh�^Ni���Q^Q@}� �

<snip>

Was the last command to edit (with vi, say) a binary file?




I don't think so, but I don't remember. *This laptop had been hibernating, crashed when woke up and I had just opened the terminal with ctrl+alt+t.



Since posting, I opened alsamixer in that terminal window and the line drawing characters were replaced with letters, but it functioned.



I've closed that terminal and opened a new one but have been unable to replicate the problem.



I wonder whether it is something unlikely to repeat? *Like a mess left by that crash that, once cleaned up, will not be back?

You could have a look at your .bash_history file to see whether you have issued a command that could be causing the problem. *If you find one, then delete it. You should be able to use your history without repeating the problematic command. *

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

Patton Echols 12-08-2011 08:38 AM

Bizarre terminal behavior
 
On 12/07/2011 11:37 PM, Mark Widdicombe wrote:


On 8 December 2011 10:37, Patton Echols <p.echols@comcast.net
<mailto:p.echols@comcast.net>> wrote:


Greetings all,

Tonight I opened a terminal session and used [ctrl]+r to search a
prior command. When I keyed the first letter, the terminal window
was filled with the characters below. I had to [ctrl]+c to return
to normal usage. Any thoughts?

Oh, 10.4, on an asus netbook

Here is the characters copied and pasted from the terminal window:

patton@mycroft:~$
(reverse-i-search)`a': �^P�<��(�̤�{9]��xmh�^Ni���Q^Q@}�
xxmh�^Ni���Q^Q@}� � xxmh�^Ni���Q^Q@}� xxmh�^Ni���Q^Q@}�
xxmh�^Ni���Q^Q@}� � xxmh�^Ni���Q^Q@}� xxmh�^Ni���Q^Q@}�
xxmh�^Ni���Q^Q@}� � xxmh�^Ni���Q^Q@}� xxmh�^Ni���Q^Q@}�
xxmh�^Ni���Q^Q@}� � xxmh�^Ni���Q^Q@}� xxmh�^Ni���Q^Q@}�
xxmh�^Ni���Q^Q@}� �


<snip>
Was the last command to edit (with vi, say) a binary file?


I don't think so, but I don't remember. This laptop had been
hibernating, crashed when woke up and I had just opened the terminal
with ctrl+alt+t.


Since posting, I opened alsamixer in that terminal window and the line
drawing characters were replaced with letters, but it functioned.


I've closed that terminal and opened a new one but have been unable to
replicate the problem.


I wonder whether it is something unlikely to repeat? Like a mess left
by that crash that, once cleaned up, will not be back?



--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

"compdoc" 12-08-2011 02:59 PM

Bizarre terminal behavior
 
> Hmmm, It turns out that my .bash_history is filled with the garbage characters

That’s doesn’t sound good - or normal. You have a bad drive?


--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

Marius Gedminas 12-08-2011 03:02 PM

Bizarre terminal behavior
 
On Thu, Dec 08, 2011 at 08:59:51AM -0700, compdoc wrote:
> > Hmmm, It turns out that my .bash_history is filled with the garbage characters
>
> That’s doesn’t sound good - or normal. You have a bad drive?

I believe an unclean shutdown was mentioned upthread?

Unclean shutdowns aren't good for your filesystem health.

Marius Gedminas
--
An algorithm must be seen to be believed.
-- D.E. Knuth
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

Patton Echols 12-08-2011 04:00 PM

Bizarre terminal behavior
 
On 12/08/2011 12:39 AM, Mark Widdicombe wrote:


On 8 December 2011 11:38, Patton Echols <p.echols@comcast.net
<mailto:p.echols@comcast.net>> wrote:


On 12/07/2011 11:37 PM, Mark Widdicombe wrote:


On 8 December 2011 10:37, Patton Echols <p.echols@comcast.net
<mailto:p.echols@comcast.net> <mailto:p.echols@comcast.net
<mailto:p.echols@comcast.net>>> wrote:

Greetings all,

Tonight I opened a terminal session and used [ctrl]+r to
search a
prior command. When I keyed the first letter, the terminal
window
was filled with the characters below. I had to [ctrl]+c to
return
to normal usage. Any thoughts?

Oh, 10.4, on an asus netbook

Here is the characters copied and pasted from the terminal
window:

patton@mycroft:~$
(reverse-i-search)`a': �^P�<��(�̤�{9]��xmh�^Ni���Q^Q@}�
xxmh�^Ni���Q^Q@}� � xxmh�^Ni���Q^Q@}� xxmh�^Ni���Q^Q@}�
xxmh�^Ni���Q^Q@}� � xxmh�^Ni���Q^Q@}� xxmh�^Ni���Q^Q@}�
xxmh�^Ni���Q^Q@}� � xxmh�^Ni���Q^Q@}� xxmh�^Ni���Q^Q@}�
xxmh�^Ni���Q^Q@}� � xxmh�^Ni���Q^Q@}� xxmh�^Ni���Q^Q@}�
xxmh�^Ni���Q^Q@}� �
<snip>
Was the last command to edit (with vi, say) a binary file?


I don't think so, but I don't remember. This laptop had been
hibernating, crashed when woke up and I had just opened the
terminal with ctrl+alt+t.

Since posting, I opened alsamixer in that terminal window and the
line drawing characters were replaced with letters, but it functioned.

I've closed that terminal and opened a new one but have been
unable to replicate the problem.

I wonder whether it is something unlikely to repeat? Like a mess
left by that crash that, once cleaned up, will not be back?

You could have a look at your .bash_history file to see whether you
have issued a command that could be causing the problem. If you find
one, then delete it. You should be able to use your history without
repeating the problematic command.


Hmmm, It turns out that my .bash_history is filled with the garbage
characters except for the 1/2 dozen commands I have used since this
started. I cleared it by doing $ mv .bash_history .bash_history-junk.
Hopefully that's the end of it.


Thanks for the suggestion.

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

Liam Proven 12-10-2011 05:54 PM

Bizarre terminal behavior
 
On 10 December 2011 19:40, Patton Echols <p.echols@comcast.net> wrote:
> On 12/08/2011 08:02 AM, Marius Gedminas wrote:
>>
>> On Thu, Dec 08, 2011 at 08:59:51AM -0700, compdoc wrote:
>>>>
>>>> Hmmm, It turns out that my .bash_history is filled with the garbage
>>>> characters
>>>
>>> That’s doesn’t sound good - or normal. You have a bad drive?
>>
>> I believe an unclean shutdown was mentioned upthread?
>>
>> Unclean shutdowns aren't good for your filesystem health.
>>
>> Marius Gedminas
>
>
> Yes, there was an unclean shutdown. This netbook has been having problems
> waking up from suspend after closing the lid. I have had trouble diagnosing
> the problem. I had been just tolerating it and trying to figure out when it
> was a problem and when not. But your comment makes me think I need to dig
> into it again with a little more urgency.

It's easy to make Ubuntu do a full filesystem check on the next reboot:

If an empty file called "forcefsck" exists in the root directory,
Ubuntu will do a full fsck when it next starts up. So just type:

sudo touch /forcefsck


--
Liam Proven • Info & profile: http://www.google.com/profiles/lproven
Email: lproven@cix.co.uk • GMail/GoogleTalk/Orkut: lproven@gmail.com
Tel: +44 20-8685-0498 • Cell: +44 7939-087884 • Fax: + 44 870-9151419
AIM/Yahoo/Skype: liamproven • MSN: lproven@hotmail.com • ICQ: 73187508

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

NoOp 12-10-2011 06:14 PM

Bizarre terminal behavior
 
On 12/08/2011 09:00 AM, Patton Echols wrote:
...
> Hmmm, It turns out that my .bash_history is filled with the garbage
> characters except for the 1/2 dozen commands I have used since this
> started. I cleared it by doing $ mv .bash_history .bash_history-junk.
> Hopefully that's the end of it.
...

Next time:

$ history -c




--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

Patton Echols 12-10-2011 06:40 PM

Bizarre terminal behavior
 
On 12/08/2011 08:02 AM, Marius Gedminas wrote:

On Thu, Dec 08, 2011 at 08:59:51AM -0700, compdoc wrote:

Hmmm, It turns out that my .bash_history is filled with the garbage characters

That’s doesn’t sound good - or normal. You have a bad drive?

I believe an unclean shutdown was mentioned upthread?

Unclean shutdowns aren't good for your filesystem health.

Marius Gedminas


Yes, there was an unclean shutdown. This netbook has been having
problems waking up from suspend after closing the lid. I have had
trouble diagnosing the problem. I had been just tolerating it and trying
to figure out when it was a problem and when not. But your comment makes
me think I need to dig into it again with a little more urgency.


--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

Patton Echols 12-10-2011 09:37 PM

Bizarre terminal behavior
 
On 12/10/2011 11:14 AM, NoOp wrote:

On 12/08/2011 09:00 AM, Patton Echols wrote:
...

Hmmm, It turns out that my .bash_history is filled with the garbage
characters except for the 1/2 dozen commands I have used since this
started. I cleared it by doing $ mv .bash_history .bash_history-junk.
Hopefully that's the end of it.

...

Next time:

$ history -c



Ah, thanks. Good to know

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

Patton Echols 12-10-2011 09:39 PM

Bizarre terminal behavior
 
On 12/10/2011 10:54 AM, Liam Proven wrote:

On 10 December 2011 19:40, Patton Echols<p.echols@comcast.net> wrote:

On 12/08/2011 08:02 AM, Marius Gedminas wrote:

On Thu, Dec 08, 2011 at 08:59:51AM -0700, compdoc wrote:

Hmmm, It turns out that my .bash_history is filled with the garbage
characters

That’s doesn’t sound good - or normal. You have a bad drive?

I believe an unclean shutdown was mentioned upthread?

Unclean shutdowns aren't good for your filesystem health.

Marius Gedminas


Yes, there was an unclean shutdown. This netbook has been having problems
waking up from suspend after closing the lid. I have had trouble diagnosing
the problem. I had been just tolerating it and trying to figure out when it
was a problem and when not. But your comment makes me think I need to dig
into it again with a little more urgency.

It's easy to make Ubuntu do a full filesystem check on the next reboot:

If an empty file called "forcefsck" exists in the root directory,
Ubuntu will do a full fsck when it next starts up. So just type:

sudo touch /forcefsck



Thanks Liam, I will give that a try.

--PE


--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users


All times are GMT. The time now is 01:02 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.