|
|
|
Review Questions
Lesson 1 - The UNIX Operating System
- What is an operating system, and why would someone want Unix as their OS?
- Name four functions of an operating system
- What are three major components of a Unix operating system
- Name three types of user interfaces offered by UNIX/Linux systems
- What three pieces of information are required to logon to a Unix system?
- What is meant by a login session? How many can you have on a UNIX system?
- When and how do you log off of a Unix system?
- What are the characteristics of a "Good" password?
Lecture Archive
VpxClient.rdp and PuTTYHowTo
PowerPoint slides
Lesson 2 - UNIX Commands
- What does Unix call the program that allows you to issue commands and
interact with the computer?
- What program finds the location of the commands you enter on the command line?
- What is the name of the variable that holds the places to search for a command?
- How would you display the contents of the above variable on the screen?
- What command would you use to change your prompt to a smiley face?
- Why doesn't Unix allow spaces in any of its command names or filenames?
- Name five characters that should not be used in command arguments?
- When issuing a command, which comes first: the options or the arguments?
- Name four pieces of information you could get about a command by using its
name as an argument to the man command?
Lecture Archive
PowerPoint slides
Lesson 3 - UNIX Mail
- What is the behavior of the mail program when invoked with no arguments?
When invoked with one or more arguments?
- How do you get out of the input mode of mail?
How do you get out of mail’s command mode?
Lecture Archive
PowerPoint slides
Lesson 4 - The UNIX File System
- What are the three parts of every file on a Unix filesystem? And where is each stored?
- What Unix command allows us to view the contents of directories?
- What is kept in a Unix directory in addition to the names of files? What command is used to see this information?
- Give four useful options to the ls command.
- What information about a file is kept in the inode that you can view in a long listing (ls -l)?
- What Unix command prints out your current working directory?
- What is the name of that directory when you log in?
- What Unix command can change your current working directory?
- What does this command do if you give it no arguments?
- What two files are in every Unix directory, and why don’t they normally show up with the ls command?
- Give an example of an absolute pathname and a relative pathname.
- What option to the ls command lets you see a long listing of a directory file?
- Unix filenames do not normally tell you whether a file is a program, directory, text, data, etc.
What Unix command can you use to find a file’s type?
- What are the three special characters used by the shell to collectively access groups of files?
What are the pattern matching characteristics of each?
- What are two reasons you may want to use these filename expansion characters?
Lecture Archive
PowerPoint slides
Lesson 5 - Managing Files
- What command is used to create directories?
- What is the syntax for the cp and mv commands?
- Why does UNIX support file linking?
- Give two ways to remove a directory and all the files it contains.
- What are the different types of files supported under UNIX?
Lecture Archive
PowerPoint slides
Lesson 7 - File Permissions
- What are the three categories of users that apply to file permissions?
- What command is used to change the owner of a file? Who can do this?
- What command is used to change the group of a file? Who can do this?
- What command is used to change the permissions of a file? Who can do this?
- What do each of the permissions rwx mean for files and directories?
- How does the umask work?
Lecture Archive
PowerPoint slides
Lesson 8 - File Input and Output
- What are stdin, stdout, and stderr?
- With what command could you create a file called walrus that
contained the line: "I am the walrus."
- What would the following command do: cat letter > mail
- What does the following command do:
history -100 | grep ls | wc -l
- What does the following command do:
find /home/CIS190 | sort | tee files | wc -l
Lecture Archive
PowerPoint slides
Lesson 9 - UNIX Processes
- What is a UNIX process? What is a daemon process?
- What information about each process does the kernel keep in the process table?
- How do you run a process in the background?
- What are the most common signals used to interrupt UNIX processes?
- What two pieces of information does the at command need,
and where does it get this information?
Lecture Archive
PowerPoint slides
Lesson 11 - VI a Text Editor
- Why wouldn't you want to use vi for drafting a resume?
- How do you create an empty file using vi?
- How do you read another file into your vi session?
- How does vi implement Save and Save As?
- What vi commands are there for moving around in a file?
- How do you delete a word in vi?
- How do you delete 3 lines? Copy 5 lines to the clipboard?
- How do you paste whatever is on the clipboard?
- How do you search for a string within a file?
PowerPoint slides
Lesson 12 - The Shell Environment
- What is the name of the file that sets up the shell environment for Bash or Bourne shell users?
- How would you know if your shell had the LPDEST environment variable set?
- When should you put commands in your .bashrc file rather than in
your .bash_profile?
- What is the purpose of the shell's source (.)
command?
Lecture Archive
PowerPoint slides
Lesson 13 - UNIX Shell Scripts
- What two files setup the login environment for Bash shell users? Bourne Shell?
- How do you assign an environment variable in the Bash Shell?
- What must you do with a shell variable to make it available to child processes?
- Give two ways to invoke a shell script. What permissions are required for each?
- Name two ways that shell variables may be initialized.
Lecture Archive
PowerPoint slides
Lecture Archive
Miscellaneous
- Find the file linux.words and give me it's absolute pathname.
- Is the cron daemon running, and if so, what is its pid?
- Print to your screen the line from the /etc/passwd file that contains
your login name. Explain what each field represents.
- How many children of the init process are currently running?
- What happens when you redirect the standard output of a shell?
- What command will tell you how long the system has been up?
- Use the finger command to find what shell the super-user uses.
|