Linux Questions & Answers – File Types

This set of Linux / Unix quiz focuses on Linux commands on File Management areas viz. file attributes, types, modes and permissions.

1. The soft link will increase the link counter of the file.(T/F)
a) True
b) False
View Answer

Answer: b
Explanation: None.

2. When you use the ln command, which of the following occurs?
a) a file is created that points to an existing file
b) a file is created that is a copy of an existing file
c) a file is moved from one location to another
d) a file is renamed
View Answer

Answer: a
Explanation: None.

3. srwxr-xrw- is a
a) internet socket file
b) unix domain socket file
c) symbolic link
d) shared file
View Answer

Answer: b
Explanation: None.
advertisement
advertisement

4. Binary or executable files are:
a) Regular files
b) Device files
c) Special files
d) Directory files
View Answer

Answer: a
Explanation: None.

5. The directory file contains:
a) File names & File Sizes
b) File names & Inode Numbers
c) File names & Address
d) File names & Permissions
View Answer

Answer: b
Explanation: None.
Note: Join free Sanfoundry classes at Telegram or Youtube

6. Which directory contain device special files?
a) /etc
b) /etc/dev
c) /root/bin
d) /dev
View Answer

Answer: d
Explanation: None.

7. Which of the following is not a valid file type on Linux
a) Socket
b) Softlink
c) Inode
d) FIFO
View Answer

Answer: c
Explanation: None.
advertisement

8. Which of the following is not correct statement regarding file types?
a) Hard links share same inode number
b) Soft links cannot be created across partitions
c) Socket files are Unix domain sockets
d) Character file is a special file
View Answer

Answer: b
Explanation: None.

9. Which are the two types of device files?
a) Character & Block
b) Character & Socket
c) Block & FIFO
d) Input & output
View Answer

Answer: a
Explanation: None.
advertisement

10. Which is an example for character special file?
a) Hard disk
b) CD-ROM
c) Terminal
d) Memory
View Answer

Answer: c
Explanation: None.

11. Which is an example for block special file?
a) Virtual Terminal
b) CD-ROM
c) Terminal
d) Serial modem
View Answer

Answer: b
Explanation: None.

12. All device files are stored in which directory?
a) /etc
b) /bin
c) /dev
d) /usr
View Answer

Answer: c
Explanation: None.

Sanfoundry Global Education & Learning Series – Linux Administration & Programming.

Here’s the list of Best Books in Linux Commands & Shell Programming.
Here’s the list of Best Books in Linux Kernel, Device-Drivers & System Programming.

To practice all questions on Linux Administration & Programming, here is complete set of 1000+ Multiple Choice Questions and Answers on Linux.

If you find a mistake in question / option / answer, kindly take a screenshot and email to [email protected]

advertisement
advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.