linux - How to remove all symlinks to a specified file with an android/busybox shell command? -


i want remove symbolic links /system/bin/toolbox in /system/bin/ directory on android phone, other symlinks should kept.

i.e. delete cat -> toolbox , df -> toolbox, etc. keep mount -> busybox.

how can write command? (i have busybox installed already.)

thanks in advance!

ahoy,

in bash shell want run following command after reading post:

#find / -type l -exec unlink {} + 

this command search through root file system (change path of search path) , locate symlinks (identified -type l). once finds symlinks, use --exec argument run command. in case command unlink, , file path replaced {} appears in command. command ended plus sign.

this command destructive , should run when understand command , desired intent, in it's current state may leave linux system command run on un-bootable since linux relies on symlinks.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -