我知道什么是硬链接,但我为什么要使用它们?硬链接有什么用?
filesystems hard-link
在Arch Linux的,如果我做ls -l的/sbin,我可以看到reboot,shutdown而且poweroff都是符号连接/usr/bin/systemctl。但是发出reboot,shutdown和systemctl命令显然并不都具有相同的行为。
ls -l
/sbin
reboot
shutdown
poweroff
/usr/bin/systemctl
systemctl
是ls -l不是向我展示有关符号链接的完整信息?例如,我如何知道真正的符号链接reboot是什么?
ls arch-linux symlink ln reboot
arch-linux ×1
filesystems ×1
hard-link ×1
ln ×1
ls ×1
reboot ×1
symlink ×1