Midterms - Week Four (Linux File System) Flashcards

1
Q

What does the File System Hierarchy Standard (FHS) define?

A

Directory structure and directory contents in Unix-like OS

FHS provides a standard for the organization of files and directories.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Where do all files and directories appear in FHS?

A

Under the root directory (/)

The root directory is the top-level directory in a file system.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the purpose of the /root directory?

A

Root user’s home directory

This is the personal directory for the system administrator.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What type of files are contained in the /bin directory?

A

Commands that may be used by both the system administrator and by users

These are essential commands for both user and system operations.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What does the /etc directory contain?

A

Configuration files

A configuration file is a local file used to control the operation of a program.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is stored in the /boot directory?

A

Everything required for the boot process except configuration files not needed at boot time and the map installer

This includes the Linux kernel and boot loader files.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the purpose of the /lib directory?

A

Contains shared libraries needed to boot the system and run commands in the root filesystem

These libraries are essential for executing binaries found in /bin and /sbin.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What does /usr represent in the file system?

A

/usr is sharable, read-only data

This directory is meant to be shared among various FHS compliant hosts.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is stored in the /var directory?

A

Variable data files

This includes files that are expected to grow in size, such as logs and spool files.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What does a regular file type (-) represent?

A

Most common type of files including document, scripts, images, executable etc

Regular files can contain any type of data.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What does a directory file type (d) represent?

A

Directories are files that list other files

Directories help organize files in the file system.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is a symbolic link file type (l)?

A

Files that refer to another file or directory

Symbolic links act as pointers to other files or directories.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What do character device files (c) represent?

A

Devices that handle data as characters (bytes), e.g., mice, keyboards

These files facilitate input/output operations.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What do block device files (b) correspond to?

A

Devices that manage data in blocks, such as hard drives and other storage devices

These files allow for efficient data storage and retrieval.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What command shows file permissions?

A

ls -l new.txt

This command lists detailed information about the file including permissions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What does the command chmod 777 new.txt do?

A

Changes file permissions for the owner, group, and others

This grants read, write, and execute permissions to everyone.