Professional Documents
Culture Documents
:
Date
:
Max.Marks :
Duration
:
Unix
20
mins.
I. Multiple Choice :
( 1 X 20 )
1. The correct unix command to display the contents of a file is
a)cat
b)more
c)less
d)all of the above
1 of 2
b.cat sample.txt<more
c.cat sample.txt|more
d None of the above
12. Which one shows the name of the operating system?
a. uname -n
b.uname -r
c.uname
d.uname m
13. How do you remove duplicate lines from the file foo using uniq?
A sort foo|uniq u
B sort -u foo|uniq -d
C sort foo| uniq c
D sort foo| uniq I
14 Which of these commands will set the permissions on file textfile
to read and write for the owner, read for the group, and nothing for
everyone else?
a. chmod 046 textfile
b. chmod 640 textfile
c. chmod 310 textfile
d. chmod rw r nil textfile
2 of 2