Lab Group Challenges - CIS 18B Advanced UNIX

Set 1

Let's get organized. What do we know about our UNIX environment?


1a. Read the man page for the man command.

> man man

How do you go to the next page? How do you go to the previous page?

How do you quit?

Does it display data the same way as the more command?

Do you think the man command uses the more command to display data?


1b. How can we use the date command to show the date and time in a neat format, when we run lab work?


1c. What is the default shell for our system? You might try the Korn shell command set.

> set

Also, look in the directory where our default shell is located, and see what other files look like they might also be shells.


1d. How can we prepare a copy of our work as we create it on the screen, so we can keep it or turn in a copy? Perhaps the script command will help.

> script


1e. Propose some other challenge. Have it approved by the instructor. Then do it.


Set 2

Managing directories and files


2a. What is the name of each student's home directory?


2b. What editors are available on our system? Look for handout material near the main desk in the lab. Provide some suggestions to help students select which one to use.


2c. How can you list the contents of all your directories?


2d. How do you create and delete directories? How do you recommend students organize their work into directories?


2e. What techniques are good for creating a text file? Exactly how do you do this?


2f. Propose some other challenge. Have it approved by the instructor. Then do it.