Cross-device link caused by MV without CP command in Android

Source: Internet
Author: User

There is no CP command in the andorid command line (why not integrate the command ?), After installing busybox, you can run the CP command.

Why not input the MV command in Android directly?MV/sdcard/testaudio/system/Meida/Audio/testaudioWhat about it? Okay, let's try this command and get the answer: "failed on '/sdcard/test10000'-Cross-device link ", that is to say, the MV command cannot copy files in the memory card to/system/or/data/partition, because the two are considered to be on different devices.

So you need to use the cat command to check CAT usage: CAT [Option]... [file]..., the function is to output a [file] or a standard input combination to the standard output. In common work, the cat command is occasionally used to display the content of a text file, and then the redirection character '>' is thought, naturally, I naturally wondered if the CP function could be replaced by outputting cat files to a specified location? I tried to find out that it is true, but I do not know the details of the CP command in Linux. I will check it later. The su command and writable partition have been introduced before, and you can basically do whatever you want, so after the curve copies the file to/system/or/data/partition, if the file permission/user name/group does not match, you can use the CHMOD and chown commands to change it.

Directly input the command CAT/sdcard/test.pdf>/system/Media/Audio/test.pdf

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.