Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1. Which command allows you to display the current vi mode at the bottom of the

ID: 3849842 • Letter: 1

Question

1. Which command allows you to display the current vi mode at the bottom of the screen?
__________________________
2. Which command allows you to display line numbers in vi? ___________________________
3. Which command would you use to save the first two items (CPU and RAM) to a separate file
with the filename PCBasics.txt? __________________________________________________
4. Which UNIX command would you issue to find out the line numbers of the lines within the
file PCConfiguration.txt that contain the string "MB"?________________________________
5. What command should you issue to find out how many lines and words the
file PCConfiguration.txt has? ___________________________________________________

Explanation / Answer

1. :set showmode

2. :set number

3. top -n 1 >> PCBasics.txt

4. sed -n '/MB/=' PCConfiguration.txt

5. wc -l -w PCConfiguration.txt