Linux Quizzes 3
1. Which is not correct statement regarding file types?
A. Hard links share same inode number
B. Socket files are Unix domain sockets
C. Character file is a special file
D. Soft links cannot be created across partitions
Answer:D
2. In which directory all device files are stored?
A. /usr
B. /bin
C. /dev
D. /etc
Answer: C
3. The Linux file system is created by using the following command
A. fsck
B. mkfs
C. mount
D. both B and C
Answer: B
4. Which of the following command is used for removing the files?
A. escape
B. rm
C. dm
D. remove
Answer: B
5. Which command would you use to get comprehensive documentation about any command in Linux?
A. echo command
B. locate command
C. get command
D. man command
Answer: D
6. Which option will cause the echo command not to output a trailing newline?
A. -e
B. -p
C. -n
D. -s
Answer: C
7. Which of the following commands are used to view memory usage?
A. memory
B. nice
C. ps
D. top
Answer: D
8. Which of the following commands can be used to view a file and do search options within it while viewing the contents?
A. less
B. report
C. find
D. grep
Answer: A
9. Which of the following commands can be used to extract content from a tar file?
A. tar -vf
B. tar -xvf
C. tar -v
D. tar -c
Answer: B
What permissions are set on a file with the command chmod 654 file.txt?
A. d--wxr-x--
B. drw-r-xr--
C. --wxr-x--x
D. -rw-r-xr--
Answer: D