Unix

1- Which command is used to remove a directory?
A) rd
B) rmdir
C) ldir
D) rdir
2-Which command is used to remove the read permission of the file 'note' from both the group and others?
A) chmod go+r note
B) chmod go+rw note
C) chmod go-x note
D) chmod go-r note
3-Which of the following keys is used to replace a single character with new text?
A) S
B) s
C) r
D) C
4-Which symbol will be used with grep command to match the pattern pat at the beginning of a line?
A) ^pat
B) $pat
C) pat$
D) pat^
5-Which of the following commands is used to display the directory attributes rather than its contents?
A) ls -1 -d
B) ls -1
C) ls -x
D) ls -F
6-Which command is used to sort the lines of data in a file in reverse order
A) sort
B) sh
C) st
D) sort -r
7-Which command is used to display the top of the file?
A) cat
B) head
C) more
D) grep
8-Which command is used to extract specific columns from the file?
A) cat
B) cut
C) grep
D) paste
9-Which command sends the word count of the file infile to the newfile?
A) wc infile >newfile
B) wc newfile
C) wc infile - newfile
D) wc infile | newfile
10-Which of the following is not a communication command.
A) write
B) mesg
C) mail
D) grep
{"name":"Unix", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"1- What are collections","img":"https://www.quiz-maker.com/3012/images/ogquiz.png"}
Powered by: Quiz Maker