CH11: The Linux file tree Flashcards

(43 cards)

1
Q

filesystem hierarchy standard

FHS

A

The FHS may help make more Unix/Linux file system trees conform better in the future.

he filesystem hierarchy standard has been designed to be used by Unix distribution developers, package developers, and system implementers.

=====================================

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

man hier

A

find information about the file system hierarchy

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

the root directory /

A

The root directory is represented by a forward slash.

Everything that exists on your Linux system can be found below this root directory
===========================================

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

the contet of the root directroy

ls/

A
bin
dev 
home 
media
mnt
proc
sbin 
srv 
tftpboot
usr
boot 
etc
lib
misc
opt
root
selinux
sys
tmp
var
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

what is binary directories

A

Binaries are files that contain compiled source code (or machine code). Binaries can be executed on the computer. Sometimes binaries are called executables.

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

/bin contains

A

The /bin directory contains binaries for use by all users.

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

According to the FHS the /bin directory should contain

A

/bin/cat and /bin/date (among others).

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

filesystem hierarchy standard directories categories

A
binary directories
configuration directories
data directories
in memory directories
/usr Unix System Resources
/var variable data
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Some applications, often when installed directly from source will put themselves in

A

A samba server installation can use /opt/samba/bin to store its binaries.

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

/sbin

A

Many of the system binaries require root privilege to perform certain tasks.

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

/lib

A

contains shared libiraies often used by /bin , /sbin

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

/lib/modules

A

contains the kernel module

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

lib32 ,lib 64

32/64 what are these numbers means

A

the size of the register used during the compilation time of the library

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

Why 64-bit computer may have 32-bit binaries?

A

for compatibility with legacy applications

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

ELF

A

Executable linkable format

used in almost every unix-like operating system since system V

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

what is system v

A

Unix System V (pronounced: “System Five”) is one of the first commercial versions of the Unix operating system. It was originally developed by AT&T

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

/opt

A

In many cases this is the software from outside the distribution repository.

the purpose of opt is to store optional software .

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

How a large package can install its all file

A

can install its all files in
/bin, /lib, /etc

within
opt/$packagename

binaries in
opt/packagename/bin

messages in
opt/packagename/man

19
Q

/boot

A

contains all the files needed to boot the computer.

these files dose’nt change very often.

20
Q

/boot/grub/grub.conf

A

define the boot menu that is displayed before the kernal starts

21
Q

/etc

A

contains the machine specific configuration files

etc stands for Editable Text Configuration

Many times the name of a configuration files is the same as the application, daemon, or protocol with .conf added as the extension.

22
Q

Configuration directories

23
Q

Binary directories

A

/bin
/sbin
/lib
/opt

24
Q

data directories

A
/home
/root
/media
/mnt
/tmp
25
in memory directories
/dev | /proc
26
directories under etc
/etc/init.d/ /etc/X11/ /etc/skel/ /etc/sysconfig/
27
/etc/init.d/
contains the scripts to start and stop daemons
28
etc/X11
the graphical display aka X windows System of just x is driven by softwaer form the X.org foundation ------- /etc/X11/xorg.conf
29
etc/skel/
Skeleton directory is copied to the home directory of a newly created user it usualy contains hidden files like .bashrc
30
/etc/sysconfig/
Contains a lot of redhat Enterprise linux configuration files.
31
/etc/sysconfig/firstboot/
tells the redhat setup not to run at boot time | you want to run the Red Hat Setup Agent at the next reboot, then simply remove this file
32
kudzu
in /etc/sysconfig/hwconf. Kudzu is software from Red Hat for automatic discovery and configuration of hardware.
33
/home
used by user to store personal or project data home/$username home directory of a user also serves as a location to store the user profile.
34
/root
On many systems /root is the default location for personal data and profile of the root user. If it does not exist by default,
35
/srv
The /srv/ directory contains site-specific data served by your system running Red Hat Enterprise Linux. This directory gives users the location of data files for a particular service, such as FTP, WWW, or CVS. Data that only pertains to a specific user should go in the /home/ directory.
36
/media
serves as a mount point for removable media devices such as: CD-ROM Digital Cameras usb attached devices
37
/mnt
should be empty and only used for temporary mount points
38
/tmp
used to store temporary data when needed this data may use disk or ram never use tmp to store important data
39
/dev
Device files in /dev are not ordinary files but are not located in the hard disk /dev is populated with files as the kernal is recording hardware.
40
/dev/tty
represent a terminal or a console attached to the system
41
terminal will be represented in
dev/pts/1
42
/dev/null /dev/null is not a good location to store your backups.
black hole has unlimited storage nothing can be retrived from it. can be uesed to discarde unwanted output from commands
43
/proc
special directory taking up disk space It is actually a view of the kernal