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 ...

Get Linux Shell Scripting with Bash now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.