CentOS8のディレクトリ構成の説明をします。

0.手順

1.CentOS8 1号機にログイン
2.ディレクトリ構成

1.CentOS8 1号機にログイン

TeraTermでCentOS8にrootでログインします。

2.ディレクトリ構成

# ディレクトリ構成確認
[root@CE08PRD101 ~]# ll /
合計 28
lrwxrwxrwx.   1 root root    7  5月 11  2019 bin -> usr/bin
dr-xr-xr-x.   6 root root 4096  9月 21 13:22 boot
drwxr-xr-x   20 root root 3200  9月 22 19:45 dev
drwxr-xr-x. 138 root root 8192  9月 22 19:45 etc
drwxr-xr-x.   4 root root   42  9月 21 12:31 home
lrwxrwxrwx.   1 root root    7  5月 11  2019 lib -> usr/lib
lrwxrwxrwx.   1 root root    9  5月 11  2019 lib64 -> usr/lib64
drwxr-xr-x.   2 root root    6  5月 11  2019 media
drwxr-xr-x.   2 root root    6  5月 11  2019 mnt
drwxr-xr-x.   3 root root   38  9月 19 00:38 opt
dr-xr-xr-x  190 root root    0  9月 22 19:45 proc
dr-xr-x---.  16 root root 4096  9月 21 22:34 root
drwxr-xr-x   41 root root 1240  9月 22 19:46 run
lrwxrwxrwx.   1 root root    8  5月 11  2019 sbin -> usr/sbin
drwxr-xr-x.   2 root root    6  5月 11  2019 srv
dr-xr-xr-x   13 root root    0  9月 22 19:45 sys
drwxrwxrwt.  17 root root 4096  9月 22 20:05 tmp
drwxr-xr-x.  12 root root  144  9月 18 23:50 usr
drwxr-xr-x.  21 root root 4096  9月 21 13:18 var

# /bin
# 一般&rootユーザが実行できる実行ファイルがある

[root@CE08PRD101 ~]# ll /usr/bin/ls
-rwxr-xr-x 1 root root 143368 6月 11 00:52 /usr/bin/ls

# /dev
# ハードディスク、CD-ROM、DVD-ROMなどのデバイスファイルがある

[root@CE08PRD101 ~]# ll /dev

# /etc
# アプリケーションの設定ファイルがある

[root@CE08PRD101 ~]# cat /etc/selinux/config

# /etc
# アプリケーションの設定ファイルがある

[root@CE08PRD101 ~]# cat /etc/selinux/config

# /home
# 一般ユーザ用のホームディレクトリ

[root@CE08PRD101 ~]# ll /home

# /mnt
# CD-ROMなどの一時的なマウントポイント

[root@CE08PRD101 ~]# ll /mnt

# /root
# rootユーザ用のホームディレクトリ

[root@CE08PRD101 ~]# ll /root

# /sbin
# rootユーザが実行できる実行ファイルがある

[root@CE08PRD101 ~]# ll /usr/sbin/useradd

# /tmp
# 作業用の一時的なファイルがある

[root@CE08PRD101 ~]# ll /tmp

# /var
# シスログやメールなどの頻繁に更新されるファイルがある

[root@CE08PRD101 ~]# ll /var/log/messages

青:ディレクトリ
緑:実行可能または認識されたデータファイル
スカイブルー:シンボリックリンクファイル
背景が黄色の黄色:デバイス
ピンク:グラフィックイメージファイル
赤:アーカイブファイル
背景が赤の赤:リンク切れ

以上、お疲れさまでした。