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?

QuestionsCategory: 101-500Which 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?
Admin Staff asked 1 year ago
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?

A. tr  "d 'r'  userlist.txt  newlist.txt

B. tr  "c 'nr' '' newlist.txt userlist.txt

C. tr 'rn' '' userlist.txt newlist.txt

D. tr 'r' 'n' userlist.txt newlist.txt

E. tr  "s '/^M/^J/' userlist.txt newlist.txt








Correct Answer: A

This question is in 101-500 exam
For getting Linux Professional Institute LPIC-1 Certificate



Next Post

Recommended

Welcome Back!

Login to your account below

Create New Account!

Fill the forms below to register

Retrieve your password

Please enter your username or email address to reset your password.