FHS Flashcards

1
Q

/boot

A

The OS Kernal - contains the actual operating system, and other files required by the boot loader (LILO or GRUB)

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

vmlinuz

A

The linux kernal, located in /boot

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

contains the actual operating system, and other files required by the boot loader (LILO or GRUB)

A

/bin

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

/bin

A

General Utilities - most important executable programs (mostly system programs) which are nescessary for the file system to boot. Includes mount and mkdir. Also contains programs that are nescessary to get a damaged system running again if only the file system containing the root directory is available.

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

Where is mkdir, the system program, located?

A

/bin

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

Difference between /bin and /usr/bin

A

/bin has files required on boot and system repair, /usr/bin has additional programs not required in that respect.

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

/sbin

A

“special system programs” - Like /bin, /sbin contains programs that are nec- essary to boot or repair the system. However, for the most part these are system configuration tools that can really be used only by root. “Normal” users can use some of these programs to query the system, but can’t change anything. As with /bin, there is a directory called /usr/sbin containing more system programs.

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

programs that are nescessary to boot or repari the system, but for the most part are only really used by root

A

/sbin

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

/lib

A

System Libraries - This is where the “shared libraries” used by programs in /bin and /sbin reside, as files and (symbolic) links. Shared libraries are pieces of code that are used by various programs. Such libraries save a lot of resources, since many processes use the same basic parts, and these basic parts must then be loaded into memory only once; in addition, it is easier to fix bugs in such libraries when they are in the system just once and all programs fetch the code in question from one central file.

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

/dev

A

Device Files - forms the interface betwenn the shell and to the device drivers inside the kernel.

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

what is a character device

A

Device that processes single characters. eg. mouse, keyboard, terminal

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

what is a block device

A

device that processes characters in block (eg of 512 bytes), such as hard disks, zip disks, etc

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

how are device files outputted in ls -l?

A

as b or c for block or character device.

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

where can you discard output that you will never need?

A

/dev/null

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

/dev/null

A

a ‘dust bin’ for discarding output

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

/etc

A

config files - v important! - contains configuation for most programs.

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

/etc/fstab

A

describes all mountable file systems and their properties

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

/etc/hosts

A

one of the configs for TCP/IP network. Maps the names fo network hosts to their IP addresses.

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

/etc/inittab

A

config for init program and thus for the system start

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

/etc/init.d/*

A

dir for the “init scripts” for various system services. Used for startup/shutdown when the system is booted or switched off.

> red hat uses /etc/rc.d/init.d

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

/etc/issue

A

contains the greeting that is output before a user is asked to log in. Frequently contains the name of the vendor that installed.

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

/etc/motd

A

contains “message of the day” that appears after a use has successfully logged in.

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

/etc/mtab

A

lists all mounted file systems and mount points.

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

/etc/passwd

A

list of all users that ore known to the system, with various user-specific info.

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

/etc/shadow

A

encrypted passwords for users, not readable by normal users.

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

describes all mountable file systems and their properties

A

/etc/fstab

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

config files for the TCP/IP network

A

/etc/hosts

28
Q

config files for the init program for system start

A

etc/inittab

29
Q

contians init scripts for various system services.

A

/etc/init.d/*

/etc/rc.d/init.d (red hat)

30
Q

contains greeting when prompted to login

A

/etc/issue

31
Q

contains message that appears after successful login

A

/etc/motd

32
Q

list of all currently mounted file systems

A

/etc/mtab

33
Q

list of users and user-specific info

A

/etc/passwd

34
Q

contains user passwords

A

/etc/shadow

35
Q

/opt

A

intended for 3rd party softwar.. Complete packages that are installable without conflicting with distribution files or locally installed files

36
Q

/usr

A

various subdirectiroise with programs and data files not esential for booting or reparing the system

37
Q

/usr/bin

A

system programs not essential to boot or sys repair

38
Q

/usr/lib

A

further libraries (not for /bin or /sbin)

39
Q

/usr/local

A

dir for files used by the lolcal sysadmin. Nothing should be put here by the distribution.

40
Q

/usr/share

A

architecture-independend data.

41
Q

/usr/share/doc

A

documentatin and howtos

42
Q

/usr/share/info

A

info pags

43
Q

/usr/share/man

A

manual pages

44
Q

/usr/src

A

source code for kernal and other programs

45
Q

/proc

A

a pseudo fs, dynamically create by kernal when needed. contains info about system runtime, such as running processes and PID

46
Q

/proc/cpuinfo

A

info about cup and clock frequency

47
Q

/proc/devices

A

devices supported by the kernal.

48
Q

/proc/dma

A

list of dma channels in use. (not interesting or important lol)

49
Q

/proc/interrupts

A

list of hardware interrupts

50
Q

/proc/ioports

A

list of i/o ports

51
Q

/proc/kcore

A

it makes available the computer’s complete RAM and is required for debugging the kernel. Requires root for reading. Stay away!

52
Q

/proc/loadavg

A

contains three nmubres measuring cpu for the last 1, 5, 15 minutes

53
Q

/proc/meminfo

A

Displays memory and swap usage, used by the free porgram

54
Q

/proc/scsi

A

all scsi devices

55
Q

/proc/verison

A

version nmber and compliation date of the current kernel.

56
Q

/sys

A

pseudo dir. “hardware control” shows a lot about available hardware

57
Q

/var

A

Dynamically changing files, distribute across diff directiorise. Data create from executing other programs is stored here.

58
Q

/var

A

Dynamically changing files, distribute across diff directiorise. Data create from executing other programs is stored here.

59
Q

what program is system log files handled by

A

the syslog service

60
Q

How do you access the kernel messages before syslogd start?

A

via ‘dmesg’

61
Q

/tmp

A

transient files, for temporayr files.

62
Q

/media

A

generated automatiaclly that can serve as mount points for cdroms and floppies. Further mountpoints can be made here.

63
Q

/mnt

A

Other storage media. Mount point for short-term mounting of additiional storage medie

64
Q

/home

A

User home directories

65
Q

/root

A

administrators home dir