ITguy
ITguy

Reputation: 888

Cannot enter long commands in terminal

I am using putty (0.64.0.0 2015) to access the terminal on an AIX server. Normally typing long commands works just fine but somehow something weird happened and when I type long commands Linux cursor goes back on the same line even behind the 'bash' word.

In order to explain the problem I have a picture. Just to explain in the picture I start with capital 'ABC' then '1-10' and then small 'abc' and then repeat this sequence to simulate a long command.

Trying to write a long command

Can anybody please explain why this is happening (it has also happened before) and how to solve it without restarting putty? Does it have to do with a buffer of some kind since the command runs just fine it is only that it looks like this in the picture.

Upvotes: 2

Views: 1597

Answers (1)

Mark A. Fitzgerald
Mark A. Fitzgerald

Reputation: 1249

It looks like your shell is no longer aware of its terminal's dimensions. Perhaps you've resized the PuTTY window after logging in?

Sometimes resize will fix such issues.

Upvotes: 3

Related Questions