nano editor line breaks

JohnJ picture JohnJ · Jan 7, 2013 · Viewed 8.6k times · Source

I am trying to learn nano installed on my server (ubuntu 1204), but the problem is whenever I open a file in nano editor it opens the file (say a shell script) as one big line rather than with line breaks which fit the screen.

Is it possible to open files with linebreaks in nano? I have tried googling this problem, but couldn’t find anything which works.

Any help would be much appreciated.

Answer

JohnJ picture JohnJ · Jan 7, 2013

Ctrl+J and the lines "broken".