LUX 205 - Introduction to UNIX/Linux

Review for First Test

The following questions are provided to help you study for the first test. Do not expect to see these exact questions on the test.

  1. What are some uses of the whatis and the man commands?

  2. What are the purposes of the clear and cal commands?

  3. How can you use the cal command to view the current month and save the result in a file?

  4. Where is the root in a Linux file system?

  5. How does the number of roots in Linux compare to a Windows file system?

  6. What is the general term that applies to a directory and three subdirectories that it contains?

  7. What are some of the partitions that the text recommends we create in a Linux file system? What are they for?

  8. What are two critical pieces of information about a file or a directory that will be found in an inode?

  9. Explain what we expect to find in each of these standard Linux directories:
    • /bin
    • /dev
    • /etc
    • /lib
    • /mnt
    • /root
    • /var

  10. What does a mount command typically include besides a label for the kind of file system a new device may have?

  11. What must be included in an absolute pathname to a file?

  12. What would a pathname to a file look like if it was in a folder that is a child of the current folder?

  13. What is the short command to change from the current directory to the root of the file system? What is the short command to change to your user ID's home directory?

  14. When you are looking for a file in Linux or UNIX, what command does the text advise us to use?

  15. When using the command from the question above, what are the two wildcard characters the text explains using? Give an example of a search you might do including each wildcard character, and explain how it works.

  16. What is the syntax to use to create a new directory to be called by your last name under the current directory?

  17. What would be the command to delete the directory created in the question above?

  18. Assume you want to copy a file that is not in your current directory. What is the command, and what are the arguments that must be used with that command?

  19. What are the three entities that can be granted permissions to a file with the chmod command?

  20. What are the three classic permissions that can be granted to a file or a directory with the chmod command?

  21. Using the chmod command, we can assign different arrays of permissions to a file to each of the three possible entities with one argument (in addition to the filename). Explain this and give an example of three different combinations of permissions.

  22. What is the relationship between ASCII and Unicode?

  23. How is a line editor different from a screen editor in UNIX/Linux environments?

  24. Why is vi named that?

  25. What are the two ways the text explains that we can start vi?

  26. From the command mode, how do you switch vi to the insert mode?

  27. Assume you have been editing a file in vi, and you need to save and exit the program quickly. What is an appropriate command to do so?

  28. What command might you use to close vi without saving the changes in the current file?

  29. What are the vi commands to delete and to copy the current line of text?

  30. When you want to search for a string of characters in a file that is open in vi, how do you search for a word that begins with "thro"?