Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
elearning:workbooks:redhat:rh124en:l100 [2024/11/15 08:21] – admin | elearning:workbooks:redhat:rh124en:l100 [2024/11/22 17:46] (Version actuelle) – admin | ||
---|---|---|---|
Ligne 5: | Ligne 5: | ||
Last update : ~~LASTMOD~~ | Last update : ~~LASTMOD~~ | ||
- | ======RH12401 - File Hierarchy System====== | + | ======RH12401 - File Hierarchy System===== |
=====Contents===== | =====Contents===== | ||
Ligne 12: | Ligne 11: | ||
* **RH12401 - File Hierarchy System** | * **RH12401 - File Hierarchy System** | ||
* Contents | * Contents | ||
+ | * Set Up your Keyboard | ||
* LAB #1 - Linux File Hierarchy System | * LAB #1 - Linux File Hierarchy System | ||
* 1.1 - File Types | * 1.1 - File Types | ||
Ligne 24: | Ligne 24: | ||
* 2.4 - Physical links | * 2.4 - Physical links | ||
* 2.5 - Symbolic links | * 2.5 - Symbolic links | ||
+ | |||
+ | =====Set Up your Keyboard===== | ||
+ | |||
+ | The current keyboard layout of the Red Hat 9.4 VM is **fr** : | ||
+ | |||
+ | < | ||
+ | [root@redhat9 ~]# localectl status | ||
+ | System Locale: LANG=en_US.UTF-8 | ||
+ | VC Keymap: fr | ||
+ | X11 Layout: fr,us | ||
+ | X11 Variant: , | ||
+ | </ | ||
+ | |||
+ | Find the appropriate keymap for your host PC: | ||
+ | |||
+ | < | ||
+ | [root@redhat9 ~]# localectl list-keymaps | ||
+ | ANSI-dvorak | ||
+ | adnw | ||
+ | al | ||
+ | al-plisi | ||
+ | amiga-de | ||
+ | amiga-us | ||
+ | apple-a1048-sv | ||
+ | apple-a1243-sv | ||
+ | apple-a1243-sv-fn-reverse | ||
+ | apple-internal-0x0253-sv | ||
+ | apple-internal-0x0253-sv-fn-reverse | ||
+ | applkey | ||
+ | at | ||
+ | at-mac | ||
+ | at-nodeadkeys | ||
+ | atari-de | ||
+ | atari-se | ||
+ | atari-uk-falcon | ||
+ | atari-us | ||
+ | az | ||
+ | azerty | ||
+ | ba | ||
+ | ba-alternatequotes | ||
+ | ba-unicode | ||
+ | ba-unicodeus | ||
+ | ba-us | ||
+ | backspace | ||
+ | bashkir | ||
+ | be | ||
+ | be-iso-alternate | ||
+ | be-latin1 | ||
+ | be-nodeadkeys | ||
+ | be-oss | ||
+ | be-oss_latin9 | ||
+ | be-wang | ||
+ | bg-cp1251 | ||
+ | bg-cp855 | ||
+ | bg_bds-cp1251 | ||
+ | bg_bds-utf8 | ||
+ | bg_pho-cp1251 | ||
+ | bg_pho-utf8 | ||
+ | bone | ||
+ | br | ||
+ | br-abnt | ||
+ | br-abnt2 | ||
+ | br-dvorak | ||
+ | br-latin1-abnt2 | ||
+ | br-latin1-us | ||
+ | br-nativo | ||
+ | br-nativo-epo | ||
+ | br-nativo-us | ||
+ | br-nodeadkeys | ||
+ | br-thinkpad | ||
+ | by | ||
+ | by-cp1251 | ||
+ | by-latin | ||
+ | bywin-cp1251 | ||
+ | ca | ||
+ | lines 1-58 | ||
+ | </ | ||
+ | |||
+ | Before you start, configure your keyboard accordingly. For example in the case of a **US** layout: | ||
+ | |||
+ | < | ||
+ | [root@redhat9 ~]# localectl set-keymap us | ||
+ | |||
+ | [root@redhat9 ~]# localectl status | ||
+ | System Locale: LANG=en_US.UTF-8 | ||
+ | VC Keymap: us | ||
+ | X11 Layout: us | ||
+ | X11 Model: pc105+inet | ||
+ | X11 Options: terminate: | ||
+ | </ | ||
=====LAB #1 - Linux File Hierarchy System===== | =====LAB #1 - Linux File Hierarchy System===== | ||
Ligne 58: | Ligne 148: | ||
| **/bin** | Contains user programs such as ls, cp e.t.c.. Note that under RHEL 9, this is a soft link (shortcut) to **/ | | **/bin** | Contains user programs such as ls, cp e.t.c.. Note that under RHEL 9, this is a soft link (shortcut) to **/ | ||
| **/boot** | Contains bootloader files, kernels and initrd (INItial Ram Disk) files. | | | **/boot** | Contains bootloader files, kernels and initrd (INItial Ram Disk) files. | | ||
- | | **/dev** | Contains nodes for accessing all the peripherals and devices connected to the system. The //udev// binary takes care of dynamically creating and deleting the relevant nodes automatically. | | + | | **/dev** | Contains |
| **/etc** | Contains static configuration files. | | | **/etc** | Contains static configuration files. | | ||
| **/home** | Contains a directory for each registered user of the system except for root. | | | **/home** | Contains a directory for each registered user of the system except for root. | | ||
- | | **/lib** | Contains | + | | **/lib** | Contains |
- | | **/lib64** | Contains | + | | **/lib64** | Contains |
| **/media** | Contains a folder for each of the mounted external file systems (CDRom DVDRom, USB Key e.t.c.). | | | **/media** | Contains a folder for each of the mounted external file systems (CDRom DVDRom, USB Key e.t.c.). | | ||
| **/mnt** | Contains a folder for each external file system mounted temporarily by root. | | | **/mnt** | Contains a folder for each external file system mounted temporarily by root. | | ||
Ligne 69: | Ligne 159: | ||
| **/root** | The home directory of the root user. | | | **/root** | The home directory of the root user. | | ||
| **/run** | Replaces the /var/run directory. Note that under RHEL 9, /var/run is a soft link (shorcut) to **/run**. | | | **/run** | Replaces the /var/run directory. Note that under RHEL 9, /var/run is a soft link (shorcut) to **/run**. | | ||
- | | **/sbin** | Contains essential system administration | + | | **/sbin** | Contains essential system administration |
| **/srv** | Contains site specific data **s**e**r****v**ed by the system (www, | | **/srv** | Contains site specific data **s**e**r****v**ed by the system (www, | ||
| **/sys** | Contains a virtual file system that describes devices for //udev//. | | | **/sys** | Contains a virtual file system that describes devices for //udev//. | | ||
Ligne 75: | Ligne 165: | ||
| **/usr** | Contains user commands in /// | | **/usr** | Contains user commands in /// | ||
| **/var** | Contains variable files. i.e. files that continually change such as log files and spool files. | | | **/var** | Contains variable files. i.e. files that continually change such as log files and spool files. | | ||
+ | |||
+ | Graphically, | ||
+ | |||
+ | {{ : | ||
====1.1 - File Types==== | ====1.1 - File Types==== | ||
Ligne 297: | Ligne 391: | ||
====2.3 - Data blocks==== | ====2.3 - Data blocks==== | ||
- | Data is stored in data blocks. In the case of a directory, the data block contains a table which references the inodes and file names in the directory. This table is called a **catalogue | + | Data is stored in data blocks. In the case of a directory, the data block contains a table which references the inodes and file names in the directory. This table is called a **catalog |
- | The name of a file is not stored in the inode but in a **catalogue | + | The name of a file is not stored in the inode but in a **catalog |
====2.4 - Physical (hard) links==== | ====2.4 - Physical (hard) links==== | ||
Ligne 366: | Ligne 460: | ||
<WRAP center round important 60%> | <WRAP center round important 60%> | ||
- | **Important**: | + | **Important**: |
</ | </ | ||
----- | ----- | ||
Copyright © 2024 Hugh Norris. | Copyright © 2024 Hugh Norris. |