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
/etc/shadow
encrypted passwords for users, not readable by normal users.
26
describes all mountable file systems and their properties
/etc/fstab
27
config files for the TCP/IP network
/etc/hosts
28
config files for the init program for system start
etc/inittab
29
contians init scripts for various system services.
/etc/init.d/* | /etc/rc.d/init.d (red hat)
30
contains greeting when prompted to login
/etc/issue
31
contains message that appears after successful login
/etc/motd
32
list of all currently mounted file systems
/etc/mtab
33
list of users and user-specific info
/etc/passwd
34
contains user passwords
/etc/shadow
35
/opt
intended for 3rd party softwar.. Complete packages that are installable without conflicting with distribution files or locally installed files
36
/usr
various subdirectiroise with programs and data files not esential for booting or reparing the system
37
/usr/bin
system programs not essential to boot or sys repair
38
/usr/lib
further libraries (not for /bin or /sbin)
39
/usr/local
dir for files used by the lolcal sysadmin. Nothing should be put here by the distribution.
40
/usr/share
architecture-independend data.
41
/usr/share/doc
documentatin and howtos
42
/usr/share/info
info pags
43
/usr/share/man
manual pages
44
/usr/src
source code for kernal and other programs
45
/proc
a pseudo fs, dynamically create by kernal when needed. contains info about system runtime, such as running processes and PID
46
/proc/cpuinfo
info about cup and clock frequency
47
/proc/devices
devices supported by the kernal.
48
/proc/dma
list of dma channels in use. (not interesting or important lol)
49
/proc/interrupts
list of hardware interrupts
50
/proc/ioports
list of i/o ports
51
/proc/kcore
it makes available the computer's complete RAM and is required for debugging the kernel. Requires root for reading. Stay away!
52
/proc/loadavg
contains three nmubres measuring cpu for the last 1, 5, 15 minutes
53
/proc/meminfo
Displays memory and swap usage, used by the `free` porgram
54
/proc/scsi
all scsi devices
55
/proc/verison
version nmber and compliation date of the current kernel.
56
/sys
pseudo dir. "hardware control" shows a lot about available hardware
57
/var
Dynamically changing files, distribute across diff directiorise. Data create from executing other programs is stored here.
58
/var
Dynamically changing files, distribute across diff directiorise. Data create from executing other programs is stored here.
59
what program is system log files handled by
the syslog service
60
How do you access the kernel messages before syslogd start?
via 'dmesg'
61
/tmp
transient files, for temporayr files.
62
/media
generated automatiaclly that can serve as mount points for cdroms and floppies. Further mountpoints can be made here.
63
/mnt
Other storage media. Mount point for short-term mounting of additiional storage medie
64
/home
User home directories
65
/root
administrators home dir