lsがファイルを別のサイズで2回表示するのはなぜですか?

lsがファイルを別のサイズで2回表示するのはなぜですか?

50-redhat.confがファイルサイズが異なるこのディレクトリに2回リストされているのはなぜですか?

ls -la /etc/ssh/ssh*

-rw-r--r--. 1 root root         1921 Aug  2 02:58 /etc/ssh/ssh_config
-rw-------. 1 root root         3667 Aug  2 02:58 /etc/ssh/sshd_config
-rw-r-----. 1 root ssh_keys      480 May 20 02:38 /etc/ssh/ssh_host_ecdsa_key
-rw-r--r--. 1 root root          162 May 20 02:38 /etc/ssh/ssh_host_ecdsa_key.pub
-rw-r-----. 1 root ssh_keys      387 May 20 02:38 /etc/ssh/ssh_host_ed25519_key
-rw-r--r--. 1 root root           82 May 20 02:38 /etc/ssh/ssh_host_ed25519_key.pub
-rw-r-----. 1 root ssh_keys     2578 May 20 02:38 /etc/ssh/ssh_host_rsa_key
-rw-r--r--. 1 root root          554 May 20 02:38 /etc/ssh/ssh_host_rsa_key.pub

/etc/ssh/ssh_config.d:
total 8
drwxr-xr-x. 2 root root           28 Aug  4 10:14 .
drwxr-xr-x. 4 root root         4096 Aug  4 10:14 ..
-rw-r--r--. 1 root root          581 Aug  2 02:58 50-redhat.conf

/etc/ssh/sshd_config.d:
total 8
drwx------. 2 root root           28 Aug  4 10:14 .
drwxr-xr-x. 4 root root         4096 Aug  4 10:14 ..
-rw-------. 1 root root          719 Aug  2 02:58 50-redhat.conf

ベストアンサー1

これら2つのファイルは互いに異なります。表示される項目にはssh_config.dSSH クライアント構成が含まれます。にあるsshd_config.dSSHサーバー構成が含まれています。

おすすめ記事