Google News
logo
Unix - Quiz(MCQ)
Which command is used for displaying the contents of a file in Unix?
A)
cp
B)
rm
C)
cat
D)
mkdir

Correct Answer :   cat


Explanation : cat command is used to display the contents of a file. For displaying the contents, simply invoke the cat command with the filename (whose contents are to be displayed) as an argument. For example, if abd.txt file contains “HELLO WORLD” then,

$ cat abd.txt
HELLO WORLD​

Advertisement