McMullin Questions Chapter 1

1.1 Logging in

1.1.1 Log In
Log in with your userid:
a) Are you prompted for a password? 
b) Why is your password not displayed as you type it?
c) Are you asked for any other information?  What? Is a default value provided?
d) What is your command prompt?
e) What does it mean?

1.1.2 Identify your terminal type
Type the following commands and record the result (if any).  Remember to press 
the Enter key at the end of each command line.
	echo $TERM
	tset -r
a) What are the results of echo $TERM ?
b) What are the results of tset -r ?

1.1.3 True or False?
a) Two people on the same UNIX computer can have the same login.
b) Each type of terminal has its own name.
c) All users have passwords.
d) Two people on the same UNIX computer can have the same password.
e) Any user can use passwd to change someone else's password.

1.3 Basic Commands

1.3.1 Identify your shell's purpose
Enter the command: ps
a) What is a shell program?
b) Name two things a shell program does for you.
c) What command line shell program are you using?
d) Can you run a shell inside a shell program?

1.3.2 Identify your current directory
In your home directory, type the following command:
	pwd (Enter)
a) What is your home directory?
b) What is the parent directory?
c) what is the root directory?
d) Do all users have their own home directories?

1.3.3 Change Directories
Enter each of the commands that follow and then use pwd to display your
working directory
a) cd ..
b) cd -
c) cd /
d) cd

1.3.4 List the contents of a directory
a) When you give the command  , what directory is being listed?
b) When you give the command ls / , what directory is being listed?

1.3.5 True or False
a) You do not need a shell program.
b) The ls command shows you the contents of a directory.
c) All files and directories are contained in the root directory.

1.3.6 Matching
a) cd ..		(1) Print working directory
b) cd -			(2) Change to parent directory
c) pwd			(3) Return to home directory
d) cd			(4) Return to previous directory

1.4 Logging Out

1.4.1 Log Out
a) What happens when you log out using: exit ?
b) What happens when you log out using: <CTRL-D> ?

1.4.2 True or False
a) Your shell continues to run after you log out.
b) The following commands let you log out:
	<Ctrl-D>
	logout
	quit
	end
	bye

1.5 Perhaps Harder Questions
1) The shell runs commands for you.  What program starts the shell?
2) If you had more than one terminal, could you be logged in more than once?
3) Identify some features of UNIX that make it secure.


Questions? Robert Katz: rkatz@ned.highline.edu
Last Update July 2, 2002