See, I want the cp
command on Android but it doesn't exist so I want to cross compile the source of cp
.
Linux has cp command, then from where can I find the code of cp
?
To get coreutils' source code, use sudo apt-get source coreutils . It's important to know that commands are nothing more than binaries placed in the paths of the PATH environment variable. These binaries are usually written in C.
Use the cp command to create a copy of the contents of the file or directory specified by the SourceFile or SourceDirectory parameters into the file or directory specified by the TargetFile or TargetDirectory parameters.
To move files, use the mv command (man mv), which is similar to the cp command, except that with mv the file is physically moved from one place to another, instead of being duplicated, as with cp.
It is missing on my android as well.
You can work around by using:
cat source > dest
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With