Questions

1:Classify each of the following as simple, complex, or compound commands:
    $ ls
    $ date ; uptime
    $ ls –l
    $ echo "hello world"

If you haven't seen some of these commands before, try them out on your system. As you progress through the book, each will be formally introduced.

2:What is the effect of putting a semicolon at the end of a single simple or complex command?

For example, will the output of the following commands be different?

$ who am i
$ who am i ;
3:What are the two major types of shells? Give an example of a shell that falls into each type.

Get Sams Teach Yourself Shell Programming 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.