📄 search_dead_sysmlinks.sh
字号:
#!/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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -