Unix File Management MCQs

This section focuses on "File Management" in unix. These Multiple Choice Questions (MCQ) should be practiced to improve the unix skills required for various interviews (campus interviews, walk-in interviews, company interviews), placements, entrance exams and other competitive examinations.

1. How many types of files are there in Unix?

A. 2
B. 3
C. 4
D. 5

View Answer


2. Which of the following is true about files?

A. All data in Unix is organized into files.
B. All files are organized into directories.
C. The directories are organized into a tree-like structure called the filesystem.
D. All of the above

View Answer


3. Which command is used to list all the files?

A. ld
B. lr
C. ls
D. lp

View Answer


4. Which of the following symbol represents the current directory?

A. Double dot (..)
B. Dollar dot($.)
C. Single dot (.)
D. Hash dot(#.)

View Answer


5. Which of the following syntax is used for creating files in VI editor?

A. $# vi filename
B. $ vi filename
C. # vi filename
D. & vi filename

View Answer


6. The most common file type is ___.

A. ordinary file
B. directory file
C. device file
D. ordinary file and directory file

View Answer


7. Each entry of directory file has component(s) namely _____.

A. filename
B. inode number
C. file size
D. Both A and B

View Answer


8. _____ and _____ cannot be used in a filename.

A. /, NULL
B. $,^
C. ., %
D. NULL, $

View Answer


9. How many stream Unix program has?

A. 2
B. 3
C. 4
D. 5

View Answer


10. What is the associated file descriptor for stdout?

A. 0
B. 1
C. 2
D. -1

View Answer





Discussion


* You must be logged in to add comment.