home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  

UNIX Power Tools

UNIX Power ToolsSearch this book
Previous: 9.26 Expect Chapter 10 Next: 10.2 Aliases for Common Commands

10. Aliases

10.1 Creating Custom Commands

  • In most shells, aliases ( 10.2 , 10.3 , 10.4 ) are an easy way to shorten a long command line or do a short series of commands.

  • All except the oldest Bourne-type shells have shell functions ( 10.9 ) . These are a cross between aliases and shell scripts. They're good both for shortening command lines and for running a short or long series of commands.

  • You can simulate shell functions ( 10.10 ) on older Bourne shells. These "fake functions" don't have much more power than aliases - but they're better than nothing!

- JP

Previous: 9.26 Expect UNIX Power Tools Next: 10.2 Aliases for Common Commands
9.26 Expect Book Index 10.2 Aliases for Common Commands

The UNIX CD Bookshelf Navigation The UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System