LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 07-19-2017, 10:17 PM   #1
luofeiyu
Member
 
Registered: Aug 2015
Posts: 228

Rep: Reputation: Disabled
Why any character can't be input at the back of . (dot character)in my bash?


It is stragne that any character can't be input at the back of . (dot character)in my bash .
I want to check my .bashrc with the command `cat .bashrc`.
Once the `cat .` was inputted, to input `b` will result in many undesired output.
Is there an virus in my computer?
Attached Thumbnails
Click image for larger version

Name:	1m0009.jpg
Views:	36
Size:	58.7 KB
ID:	25514   Click image for larger version

Name:	1m0010.jpg
Views:	30
Size:	76.8 KB
ID:	25515   Click image for larger version

Name:	1m0011.jpg
Views:	31
Size:	121.6 KB
ID:	25516   Click image for larger version

Name:	1m0013.jpg
Views:	29
Size:	121.9 KB
ID:	25517  
 
Old 07-20-2017, 06:52 AM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,354
Blog Entries: 13

Rep: Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411
First read is that there appears to be a very lengthy filename starting with a dot.

But did you hit TAB after you did the "cat ."? You imply that you hit the 'b' and this happened.

Have you investigated with an "ls -al" command to view this file or phenomena? Suggest you do this, and suggest you enlarge that terminal window to see more all at once if you can. Find out what that is.

Or, are you saying that you just hit the 'b' and suddenly it streamed that, and then this is why you had to hit the CTRL-C?

How about things like a reboot, a shutdown and restart, or a closing of that terminal window and a new one?

I have encountered messed up I/O on a terminal window from something like cat'ing a binary file. And have had to close the terminal to create a new one. Rarely have I had to reboot or shutdown, but there have been times where things have been messed up enough that I've had to take that action. Have you tried any of those actions?
 
Old 07-20-2017, 07:12 AM   #3
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,669

Rep: Reputation: 496Reputation: 496Reputation: 496Reputation: 496Reputation: 496
Hi,

Usually it is in how you set the environment. Check the language default
Code:
env | grep -i lang
if it is not in some english literate language there is likely a problem to issue. Try change it to LANG=en_US.UTF-8 and see if the problem goes.

Another possible solution is to go to the configuration menu and set your KEYBOARD to a common layout like 101-Keys-International or the like.

I certain came across that problem and I solved it easily from stipulating proper "locale" values and Keyboard Layout.

Hope this helps. Good luck.

m.m.
 
Old 07-20-2017, 01:47 PM   #4
MadeInGermany
Senior Member
 
Registered: Dec 2011
Location: Simplicity
Posts: 1,766

Rep: Reputation: 797Reputation: 797Reputation: 797Reputation: 797Reputation: 797Reputation: 797Reputation: 797
Can you start xterm in your terminal tool?
How is the behavior in the xterm?
 
Old 07-20-2017, 02:11 PM   #5
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2138Reputation: 2138Reputation: 2138Reputation: 2138Reputation: 2138Reputation: 2138Reputation: 2138Reputation: 2138Reputation: 2138Reputation: 2138Reputation: 2138
Quote:
Originally Posted by rtmistler View Post
I have encountered messed up I/O on a terminal window from something like cat'ing a binary file. And have had to close the terminal to create a new one. Rarely have I had to reboot or shutdown, but there have been times where things have been messed up enough that I've had to take that action. Have you tried any of those actions?
FYI - "reset" typically fixes this condition. Even if you can't see the letters as you type reset, just do it, hit enter, and 99% of the time it'll clear everything up and go back to normal.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
what does a dot character mean in linux? skoda Linux - Newbie 5 01-20-2015 10:24 AM
Writing a file character by character with a bash builtin command (script). stf92 Linux - Newbie 4 06-30-2012 08:41 PM
Bash scripting: parsing a text file character-by-character Completely Clueless Programming 13 08-12-2009 09:07 AM
Bash: How to read tab character when reading input new_to_bash Programming 7 12-09-2006 07:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration