symbolic link가 깨져 있는 경우에는 다음과 같이 확인하면 됨



BROKEN_LINK=$(find /path/to -type l -xtype l | wc -l)


if [ $BROKEN_LINK -gt 0 ]; then


    echo -e "CHECK BROKEN_LINK:\t$/path/to"


    error


fi


ref : https://www.commandlinefu.com/commands/view/8260/find-broken-symlinks

Write your message and submit
« PREV : 1 : 2 : 3 : 4 : 5 : ··· : 12 : NEXT »