symlink
symbolic linkの略称だと気づくのに時間かかった。
そのファイルに貼られてるリンクの一覧を知りたい場合はどうする?? 難しい。
Inodeを調べれば良い?
$ ls -i foge.txt
これではない。
$ stat hoge.txt ?
いろいろわかるけどこれではない。
linksの数は、、symlinkの数でない?? hard linksの数?
$ readlink hoge.txt ?
これも、参照先をみるもので、参照されてるものをリストアップするものではない。
find(command)で集める
symlink - How to find all symbolic links pointing to any file/directory inside a given directory - Unix & Linux Stack Exchange
$ find . -type l ....
type l(ink) で集めて、あとで、grepかけるとかか,,,,
bash - Linux: Find all symlinks of a given 'original' file? (reverse 'readlink') - Stack Overflow
$ find / -exec ls -ald {} ';' 2>/dev/null | grep '\-> /usr/share/applications'
そもそも....
symbolic link 自体が、勝手なファイルなので、管理する必要ないのかも。symlink消してもtargetファイルに影響ないし、
#CommandLine
#シンボル