O'Reilly logo

Linux Shell Scripting with Bash by Ken O. Burtch

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 3. Files, Users, and Shell Customization

When a friend of mine got a new Unix computer, the console display didn't look quite right. When we tried to view files, the operating system didn't know how big the screen was. It displayed the entire file instead of a screen at a time.

My Unix was a bit rusty at the time, but I remembered that there was a stty command to change attributes of the display. Looking at the help listing for stty, I noticed a person could set the rows and the line. Thinking that line must be the number of lines on the display, I typed stty line 24. The computer stopped responding, forcing us to reboot it.

We phoned up a Unix professional who had the same operating system. He said, “That should have worked. Let me try ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required