PrepAway - Latest Free Exam Questions & Answers

Which of the following commands can you use to assign a line number to every line of the install.log file?

Which of the following commands can you use to assign a line number to every line of the
install.log file? Each correct answer represents a complete solution. Choose all that apply.

PrepAway - Latest Free Exam Questions & Answers

A.
sed = install.log

B.
nl install.log

C.
wc -c install.log

D.
wc -m install.log

Explanation:

The nl install.log and sed = install.log commands can be used to assign a line number to every line
of the install.log file.
Answer options C and D are incorrect. The wc -c install.log and wc -m install.log commands will
print the number of bytes and the number of characters, respectively.


Leave a Reply