File System: Multi-Level Hierarchy Structure Known as a Directory Tree

This is a computer science quiz on UNIX, which includes questions based on the file systems in UNIX which is a multi-level hierarchy structure.

images.jpg
Start Quiz

A file is a container for storing information.

True False

In how many broad categories, files are divided into UNIX?

2 4 5 3

In UNIX, the file name and file size are stored in the file itself.

True False

The root directory is represented by ___

\ / * $

_____ and _____ cannot be used in a filename.

/, NULL $,^ ., % NULL, $

Device files are used by the kernel for operating the device.

True False

Which of the following is not a filter?

cat grep wc sort None of the above

Which command is used to remove a directory?

rd rmdir dldir rdir None of the above

The most common file type is ___

Ordinary file

Directory file

Device file

Ordinary file and directory file

What is a directory file?

A directory containing data

A directory containing details of the files and subdirectories it contains

A directory contains files

A directory containing data and files

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

Filename

Inode number

Filename and Inode number

File size

When we log in, the UNIX places us in a directory, called the ______ directory.

Home

Main

Parent

Current

The cp command uses:

Standard input file

Standard output file

Both input and output file

Neither standard input nor standard output file

Which command will be used with vi editor to replace text from cursor to right?

r

R

s

S

Which of the following commands is used to rename a file?

rename

remove

mv

ren

Quiz/Test Summary
Title: File System: Multi-Level Hierarchy Structure Known as a Directory Tree
Questions: 15
Contributed by:
james