Google News
logo
Unix - Quiz(MCQ)
Which command is used for preparing a file for printing?
A)
pr
B)
cd
C)
cat
D)
print

Correct Answer :   pr


Explanation : The pr command is used for preparing a file by adding suitable headers, footers and formatted text. This command is used with a filename as an argument. For example,

$ pr  dept.lst
May  06  10:38  1998  dept.lst  Page 1
01:accounts:6213
02:admin:5423
03:marketing:6521
04:personnel:2365
 
.....blank lines.......​

Advertisement