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.
- What are some uses of the whatis and the man commands?
- What are the purposes of the clear and cal commands?
- How can you use the cal command to view the current month and save the result in a file?
- Where is the root in a Linux file system?
- How does the number of roots in Linux compare to a Windows file system?
- What is the general term that applies to a directory and three subdirectories that it contains?
- What are some of the partitions that the text recommends we create in a Linux file system? What are they for?
- What are two critical pieces of information about a file or a directory that will be found in an inode?
- Explain what we expect to find in each of these standard Linux directories:
What does a mount command typically include besides a label for the kind of file system a new device may have?
What must be included in an absolute pathname to a file?
What would a pathname to a file look like if it was in a folder that is a child of the current folder?
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?
When you are looking for a file in Linux or UNIX, what command does the text advise us to use?
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.
What is the syntax to use to create a new directory to be called by your last name under the current directory?
What would be the command to delete the directory created in the question above?
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?
What are the three entities that can be granted permissions to a file with the chmod command?
What are the three classic permissions that can be granted to a file or a directory with the chmod command?
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.
What is the relationship between ASCII and Unicode?
How is a line editor different from a screen editor in UNIX/Linux environments?
Why is vi named that?
What are the two ways the text explains that we can start vi?
From the command mode, how do you switch vi to the insert mode?
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
What command might you use to close vi without saving the changes in the current file?
What are the vi commands to delete and to copy the current line of text?
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