LPI
101-500 · Question #497
101-500 Question #497: Real Exam Question with Answer & Explanation
Sign in or unlock 101-500 to reveal the answer and full explanation for question #497. The question stem and answer options stay visible for context.
GNU and Unix Commands
Question
Which of the following commands changes all CR-LF line breaks in the text file userlist.txt to Linux standard LF line breaks and stores the result in newlist.txt?
Options
- Atr -d `\r' < userlist.txt > newlist.txt
- Btr -c
\n\r'' <newlist.txt> userlist.txt - Ctr
\r\n'' <userlist.txt> newlist.txt - Dtr
\r'\n' userlist.txt newlist.txt - Etr -s `/^M/^J/' userlist.txt newlist.txt
Unlock 101-500 to see the answer
You've previewed enough free 101-500 questions. Unlock 101-500 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
Topics
#tr command#line ending conversion#CR-LF to LF#text processing