LUX 205 - Introduction to UNIX/Linux
Review for Second Test
The following questions are provided to help you study for
the second test. Do not expect to see these exact questions on the test.
- What is the directory listing symbol that tells you an object is a regular file? What do you see if it is a directory?
- What are the following labels and what do they typically connect to: stdin, stdout, stderr
- What is a proper use of the > redirection operator?
- How is > different in function from >>?
- How is | different from the operators in the questions above?
- Explain two methods of creating an empty file without using a file editor.
- Which command can be used to delete a file or a directory? How?
- What rule constrains the idea of making a copy of a file in the folder the original is stored in?
- How is the use of the find command different from using the ls command?
- What is a shell script?
- What is awk?
- What are some uses of the cut command?
- What is the purpose of the grep command? According to standard instructions, what kind of argument must be handed to grep?
- How are the comm and diff commands different in what they do?
- How is the sed command different from the grep command?
- What are the three things the wc command is good for?
- Back to sed, what are the two ways sed can receive control strings?
- What is the built-in assumption about paper size in the pr command?
- In system design, what should you try to derive from a good description of desired system outputs?
- What are remarks, and how are they created in a shell script?
- Why is system development usually portrayed as a cycle of events?
- What kind of output does a compiler create?
- What is a high level language?
- What is the typical alternative to using a high level language?
- If I used the command "chmod 731 myfile", what should the result be?
- What do you expect to be stored in the PATH variable?
- What is the proper way to ask the operating system to show you the contents of a variable?
- What does the printenv command do?
- What is the difference between an operator and an operand?
- When assigning a value to a variable, when must we use quotation marks?
- When should we use the let command?
- When do you use accents grave in a variable assignment?
- The echo command cares whether we use single or double quotes around $variablename. What is the difference?
- Explain sequence, selection, and iteration.
- When is an equal sign not an assignment operator?
- What are the two types of loops covered in the text, and how are they different in intended use?
- What is the tput command for?
- How do you format a test condition in a shell script?