search_dead_sysmlinks.sh
来自「在网络安全中经常会遇到rootkit」· Shell 代码 · 共 12 行
SH
12 行
#!/bin/sh# Q: What does this script do?# A: It shows all files which have link to another non-existing file (so called 'dead links')find / -type l -exec /bin/sh -c "[ -e '{}' ] || echo 'Found dead link {}'" \; # - Searches from the root (/)# - Searches for symlinks (-type l)# - When it finds a symlink, it checks if the symlink does exist. If not, display a message
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?