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.

  1. What is the directory listing symbol that tells you an object is a regular file? What do you see if it is a directory?

  2. What are the following labels and what do they typically connect to: stdin, stdout, stderr

  3. What is a proper use of the > redirection operator?

  4. How is > different in function from >>?

  5. How is | different from the operators in the questions above?

  6. Explain two methods of creating an empty file without using a file editor.

  7. Which command can be used to delete a file or a directory? How?

  8. What rule constrains the idea of making a copy of a file in the folder the original is stored in?

  9. How is the use of the find command different from using the ls command?

  10. What is a shell script?

  11. What is awk?

  12. What are some uses of the cut command?

  13. What is the purpose of the grep command? According to standard instructions, what kind of argument must be handed to grep?

  14. How are the comm and diff commands different in what they do?

  15. How is the sed command different from the grep command?

  16. What are the three things the wc command is good for?

  17. Back to sed, what are the two ways sed can receive control strings?

  18. What is the built-in assumption about paper size in the pr command?

  19. In system design, what should you try to derive from a good description of desired system outputs?

  20. What are remarks, and how are they created in a shell script?

  21. Why is system development usually portrayed as a cycle of events?

  22. What kind of output does a compiler create?

  23. What is a high level language?

  24. What is the typical alternative to using a high level language?

  25. If I used the command "chmod 731 myfile", what should the result be?

  26. What do you expect to be stored in the PATH variable?

  27. What is the proper way to ask the operating system to show you the contents of a variable?

  28. What does the printenv command do?

  29. What is the difference between an operator and an operand?

  30. When assigning a value to a variable, when must we use quotation marks?

  31. When should we use the let command?

  32. When do you use accents grave in a variable assignment?

  33. The echo command cares whether we use single or double quotes around $variablename. What is the difference?

  34. Explain sequence, selection, and iteration.

  35. When is an equal sign not an assignment operator?

  36. What are the two types of loops covered in the text, and how are they different in intended use?

  37. What is the tput command for?

  38. How do you format a test condition in a shell script?