Basic understanding of file types in Linux:
Linux as every one knows is all about files. Here is an attempt to understand basic points on Linux file system for newbies and for others how know about this will be a refreshing points.
1) 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
Linux as every one knows is all about files. Here is an attempt to understand basic points on Linux file system for newbies and for others how know about this will be a refreshing points.
1) 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
Answer::: A
b) unix domain socket file
c) symbolic link
d) shared file
2) srwxr-xrw- is a
a) internet socket fileb) unix domain socket file
c) symbolic link
d) shared file
Answer::: B
b) Device files
c) Special files
d) Directory files
b) File names & Inode Numbers
c) File names & Address
d) File names & Permissions
b) /etc/dev
c) /root/bin
d) /dev
b) Softlink
c) Inode
d) FIFO
b) Soft links cannot be created across partitions
c) Socket files are Unix domain sockets
d) Character file is a special file
b) False
3) Binary or executable files are:
a) Regular filesb) Device files
c) Special files
d) Directory files
Answer::: A
4) The directory file contains:
a) File names & File Sizesb) File names & Inode Numbers
c) File names & Address
d) File names & Permissions
Answer::: B
5) Which directory contain device special files?
a /etcb) /etc/dev
c) /root/bin
d) /dev
Answer::: D
6) Which of the following is not a valid file type on Linux
a) Socketb) Softlink
c) Inode
d) FIFO
Answer::: C
7) Which of the following is not correct statement regarding file types?
a) Hard links share same inode numberb) Soft links cannot be created across partitions
c) Socket files are Unix domain sockets
d) Character file is a special file
Answer::: B
8) The soft link will increase the link counter of the file.(T/F)
a) Trueb) False
Answer::: B
b) CD-ROM
c) Terminal
d) Memory
9) Which are the two types of device files?
a) Character & Block
b) Character & Socket
c) Block & FIFO
d) Input & output
b) Character & Socket
c) Block & FIFO
d) Input & output
Answer::: A
10) Which is an example for character special file?
a) Hard diskb) CD-ROM
c) Terminal
d) Memory
Answer::: C
11) Which is an example for block special file?
a) Virtual Terminal
b) CD-ROM
c) Terminal
d) Serial modem
a) Virtual Terminal
b) CD-ROM
c) Terminal
d) Serial modem
Answer::: B
12) All device files are stored in which directory?
a) /etc
b) /bin
c) /dev
d) /usr
a) /etc
b) /bin
c) /dev
d) /usr
Answer::: C
No comments:
Post a Comment