Goals for this Hour

In this hour, you learn

  • How to turn on the C shell and Korn shell history mechanism

  • How to use csh history and ksh history to cut down on typing

  • About command aliases in the C and Korn shells

  • Some power aliases for csh

  • How to set custom prompts

  • How to create simple shell scripts

This hour focuses on two key facets of the C and Korn shells: the history mechanism and the command alias capability. I guarantee that within a few minutes of learning about these two functions, you will be certain that you couldn't have survived as happily in UNIX without them. There are three ways to ensure that you don't enter commands more than once: csh history enables you to repeat previous commands without reentering them, an alias enables you to ...

Get Sams Teach Yourself UNIX® in 24 Hours Second Edition 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.