Linux +, как определить, указывает ли на файл link/s

Вероятно, не лучшее решение когда-либо, но я действительно решал проблему. Я добавил: virsh возобновляют MailServer и> /var/log/MailServer.log к/etc/rc.d/rc.local

Не мог бы быть самый изящный способ вызвать запуск.. но это работает :).

Спасибо за справку.

2
задан 8 May 2013 в 19:57
2 ответа

A symbolic link is similar to a shortcut in Windows. It's a entry in the file system that points to another file. The destination file is not touched and no change is made to the original files metadata - it does not know that it has been linked to.

You will not be able to tell if a file has symbolic links pointing at it just by looking at information from ls.

Hard links, however, increment the link count on the file system which can be seen in a directory listing. If you hard link two files to the same data, both will show a link count of 2

3
ответ дан 3 December 2019 в 10:07

what the way to identify if file or directory have link/s

You can do like this:

find / -lname "filename"
1
ответ дан 3 December 2019 в 10:07

Теги

Похожие вопросы