CH11: The Linux file tree Flashcards
filesystem hierarchy standard
FHS
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.
=====================================
man hier
find information about the file system hierarchy
the root directory /
The root directory is represented by a forward slash.
Everything that exists on your Linux system can be found below this root directory
===========================================
the contet of the root directroy
ls/
bin dev home media mnt proc sbin srv tftpboot usr boot etc lib misc opt root selinux sys tmp var
what is binary directories
Binaries are files that contain compiled source code (or machine code). Binaries can be executed on the computer. Sometimes binaries are called executables.
/bin contains
The /bin directory contains binaries for use by all users.
According to the FHS the /bin directory should contain
/bin/cat and /bin/date (among others).
filesystem hierarchy standard directories categories
binary directories configuration directories data directories in memory directories /usr Unix System Resources /var variable data
Some applications, often when installed directly from source will put themselves in
A samba server installation can use /opt/samba/bin to store its binaries.
/sbin
Many of the system binaries require root privilege to perform certain tasks.
/lib
contains shared libiraies often used by /bin , /sbin
/lib/modules
contains the kernel module
lib32 ,lib 64
32/64 what are these numbers means
the size of the register used during the compilation time of the library
Why 64-bit computer may have 32-bit binaries?
for compatibility with legacy applications
ELF
Executable linkable format
used in almost every unix-like operating system since system V
what is system v
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
/opt
In many cases this is the software from outside the distribution repository.
the purpose of opt is to store optional software .