Where can I find the source code for the cp command?

see I want cp coomand on android, but it is not exciting, so I think cross compile the cp source.

Linux has a cp command, where can I find cp code from?

+8
c linux cp cross-compiling
source share
5 answers

cp is part of coreutils . There are also various implementations, such as busybox .

It is very strange that there is no cp on the android. Have you carefully studied?

+7
source share

Go to the coreutils website Download the latest archive and go to / src / there you can find the cp.c file (and much more)

+4
source share

I believe what you want in here

From this foram I can download the source code here

ftp://ftp.gnu.org/gnu/coreutils/coreutils-5.0.tar.gz

In the / src directory after extracting it.

and the latest version of core utils can be found here

http://ftp.gnu.org/gnu/coreutils/

+1
source share

It is also missing on my android.

You can work with:

  cat source > dest 
0
source share

All Articles