Workshop

The Workshop summarizes the key terms you learned and poses some questions about the topics presented in this chapter. It also provides you with a preview of what you will learn in the next hour.

Key Terms

basename The closest directory name. For example, the basename of /usr/home/ tayloris taylor.

command number The unique number by which the shell indexes all commands. You can place this number in your prompt by using \!and use it with the history mechanism as !command-number.

Exercises

1:How do you tell the C shell that you want it to remember the last 30 commands during a session, and to remember the last 10 commands across login sessions?
2:Assume that you get the following output from entering history:
 1 ls -CF 2 who | grep dunlaplm ...

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.