2

我想删除我的android手机目录/system/bin/toolbox中的所有符号链接/system/bin/,其他符号链接应该保留。

即删除cat -> toolboxdf -> toolbox等。保留mount -> busybox

如何编写命令?(我已经安装了busybox。)

提前致谢!

4

1 回答 1

2

Ahoy,

In a bash shell you will want to run the following command after reading this post:

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

This Command will search through the root file system (change to the path of the search path) and locate symlinks (identified by the -type l). Once it finds symlinks, it will use the --exec argument to run a command. In this case the command is unlink, and the file path is replaced where {} appears in this command. The command is ended with a plus sign.

This command is destructive and should only be run when you understand the command and it is your desired intent, however in it's current state may leave any Linux system this command is run on un-bootable since Linux often relies on symlinks.

于 2013-10-07T03:19:52.820 回答