LUX 205 - Introduction to UNIX/Linux
Review for Third Test
The following questions are provided to help you study for the third
test. Do not expect to see these exact questions on the test.
- What are two of the things that the dd utility does that cp does not
- df and du are related, but not identical. What are they for?
- The text names two files to search for when you are trying to locate
garbage files on your system. What are they?
- What is the top utility for? How do you terminate a process with
- How is free similar and different from the df command?
- What is a PID? What are two utilities that will report PIDs to you?
- How do you make a process run in the background in Linux?
- How can you end a process that is running in the background, using
a command from chapter 8? What information do you need to know about
the process to end it?
- What is the Windows utility that is similar to ifconfig? What general
information does it provide to you?
- What can you learn from a ping to an IP address?
- Why is traceroute more informative than a ping to a distant device?
What more can you learn from it?
- What information should you expect to get from the netstat command?
How is the information provided by netstat -p different?
- Describe what a flowchart for a shell script should look like. What
information should it display?
- Compare a shell script to a pseudocode representation of that shell
script. What makes one different from the other?
- What tool did I instruct you to use in making a flow chart?
- For what purpose did the text tell you to use a hashbang in a shell
script? Why does it work, when it looks like it should not? Write a
line that uses the hashbang notation recommended by the text.
- How could a correctly written line like the one in the question above
fail to work properly?
- What is the purpose of the test command? What are the two possible
logical outputs of this command? What are the two possible numeric outputs
of this command?
- The text showed you two ways to use the test command to determine
whether the contents of two variable match. What are they?
- How do you determine the outcome of a test command?
- What are the three classic Boolean operators discussed in chapter
7? How are they implemented in the test command?
- Explain the logic of two expressions linked by Boolean operators,
and what must be so for the entire phrase to be true or false.
- Some commands take a bit of time to produce their intended results.
What are the two factors described in chapter 7 that contribute to this
- The clear command may take longer to run than we might like. What
does the text recommend we do to speed up the performance of this command
when it is used several times in a script?
- What method is used in the text to make a variable available to more
than one script in a single session?
- What is a function, with regard to shell scripts?
- How is a function structured in a shell script"
- How many arguments may we expect to be able to pass to a shell script
function? How are they referenced in the function?
- What would be the result of using single quotes instead of back quotes
where they are needed?
- What are some of the shell script troubleshooting tips the text offers?