su

suで、指定のユーザに切り替えたり、スーパーユーザになれる。

Man page of SU

[bg1@localhost ~]$ ls
test          テンプレート  ドキュメント  音楽  公開
ダウンロード  デスクトップ  ビデオ        画像
[bg1@localhost ~]$ cd /
[bg1@localhost /]$ pwd
/
[bg1@localhost /]$ ls
@System.solv  boot  etc   lib    lost+found  mnt  proc  run   srv  tmp  var
bin           dev   home  lib64  media       opt  root  sbin  sys  usr
[bg1@localhost /]$ ls -al
合計 2136
dr-xr-xr-x.  18 root root    4096  3月 13 13:35 .
dr-xr-xr-x.  18 root root    4096  3月 13 13:35 ..
-rw-r--r--.   1 root root 2110682  3月 13 13:35 @System.solv
lrwxrwxrwx.   1 root root       7  7月 25  2019 bin -> usr/bin
dr-xr-xr-x.   7 root root    4096  3月 13 13:21 boot
drwxr-xr-x.  20 root root    4000  3月 14 12:41 dev
drwxr-xr-x. 146 root root   12288  3月 14 13:36 etc
drwxr-xr-x.   4 root root    4096  3月 13 13:31 home
lrwxrwxrwx.   1 root root       7  7月 25  2019 lib -> usr/lib
lrwxrwxrwx.   1 root root       9  7月 25  2019 lib64 -> usr/lib64
drwx------.   2 root root   16384 10月 24 08:09 lost+found
drwxr-xr-x.   2 root root    4096  7月 25  2019 media
drwxr-xr-x.   2 root root    4096  7月 25  2019 mnt
drwxr-xr-x.   2 root root    4096  7月 25  2019 opt
dr-xr-xr-x. 203 root root       0  3月 14 12:41 proc
dr-xr-x---.   3 root root    4096  3月 14 13:36 root
drwxr-xr-x.  48 root root    1320  3月 14 12:49 run
lrwxrwxrwx.   1 root root       8  7月 25  2019 sbin -> usr/sbin
drwxr-xr-x.   2 root root    4096  7月 25  2019 srv
dr-xr-xr-x.  13 root root       0  3月 14 12:41 sys
drwxrwxrwt.  21 root root     460  3月 14 13:40 tmp
drwxr-xr-x.  12 root root    4096 10月 24 08:12 usr
drwxr-xr-x.  21 root root    4096 10月 24 08:16 var
[[bg1@localhost /]$
[bg1@localhost /]$ ls root
ls: ディレクトリ 'root' を開くことが出来ません: 許可がありません
[bg1@localhost /]$ 

cdで一番トップの'/'ディレクトリに移動しても、"root"ディレクトリはパーミッションがないので見られない。
そこで、

[bg1@localhost /]$ su
パスワード:
[root@localhost /]# ls root
anaconda-ks.cfg
[root@localhost /]# cd root
[root@localhost ~]# ls
anaconda-ks.cfg
[root@localhost ~]# pwd
/root
[root@localhost ~]#

suでrootパスワードを入力することで、rootユーザになり、rootフォルダの中身を見れる。
このとき、記号が'$'から'#'になってるのがわかる。
これがrootの証。