单项选择题
Which of the following commands will change all CR-LF pairs in an imported text file, userlist.txt, to Linux standard LF characters and store it as newlist.txt?()
A. tr ’\r\n’ " < userlist.txt > newlist.txt
B. tr -c ’\n\r’ " < newlist.txt > userlist.txt
C. tr -d \r¯ < userlist.txt > newlist.txt
D. tr \r¯\n¯ userlist.txt newlist.txt
E. tr -s ®^M’¡®^J’ userlist.txt newlist.tx
相关考题
-
单项选择题
Youhaveread/writepermissiononanordinaryfilefoo.YouhavejustrunInfoobar.Whatwouldhappenifyouranrmfoo?()
A. foo and bar would both be removed.
B. foo would be removed while bar would remain accessible.
C. foo would be removed, bar would still exist but would be unusable.
D. Both foo and bar would remain accessible.
E. You would be asked whether bar should be removed. -
填空题
Whatapplicationcanbeusedinplaceofxhost?Pleaseenteronlythenamewithoutpath.Answer:() -
单项选择题
WhatisthedifferencebetweenthE.removeandthE.purgeactionwiththedpkgcommand?()
A. -remove removes the program, -purge also removes the config files
B. -remove only removes the program, -purge only removes the config files
C. -remove removes a package, -purge also removes all packages dependent on it
D. -remove removes only the package file itself, -purge removes all files related to the package
