0

I recently learned that you can't hard link to directories, however, when I ran: ls -l / I got this:

total 24
lrwxrwxrwx   1 root root    7 Dec  6  2021 bin -> usr/bin
drwxr-xr-x   4 root root 4096 Dec 31  1969 boot                      <-!!!!!!
drwxr-xr-x  21 root root 4380 Sep 20 06:43 dev                       <-!!!!!!
drwxr-xr-x   1 root root 3520 Sep 20 06:43 etc
drwxr-xr-x   1 root root   40 Sep 18 10:58 home
lrwxrwxrwx   1 root root    7 Dec  6  2021 lib -> usr/lib
lrwxrwxrwx   1 root root    7 Dec  6  2021 lib64 -> usr/lib
drwxr-xr-x   1 root root    6 Sep  5 21:56 mnt
drwxr-xr-x   1 root root    6 Aug 27 09:56 nix
drwxr-xr-x   1 root root   92 Sep 10 09:12 opt
dr-xr-xr-x 377 root root    0 Sep 20 06:43 proc                      <-!!!!!!
drwxr-x---   1 root root   92 Sep 18 17:54 root
drwxr-xr-x  28 root root  640 Sep 20 06:43 run                       <-!!!!!!
lrwxrwxrwx   1 root root    7 Dec  6  2021 sbin -> usr/bin
drwxr-xr-x   1 root root   14 Aug 27 07:30 srv
drwxr-xr-x   1 root root   10 Aug 29 14:46 steam
dr-xr-xr-x  13 root root    0 Sep 20 06:43 sys                       <-!!!!!!
drwxrwxrwt  10 root root  260 Sep 20 07:03 tmp                       <-!!!!!!
drwxr-xr-x   1 root root   86 Sep 19 20:59 usr
drwxr-xr-x   1 root root  116 Sep 20 06:43 var

All the pseudo file systems and temporary file systems in addition to /boot have hard links to them. Why is this?

0 Answers0