From where i can find the source code of cp command?
Solution 1
cp
is part of coreutils. There are also different implementations, for example busybox.
It's very strange that there is no cp
on android. Have you looked thoroughly?
Solution 2
Go to this site coreutils Download the latest archive and go to /src/ there you can find the cp.c file(and many more)
Solution 3
http://coreutils.sourcearchive.com/documentation/7.4/cp_8c-source.html
Solution 4
It is missing on my android as well.
You can work around by using:
cat source > dest
Solution 5
I believe what you want is in here
From that foram i can download source from here
ftp://ftp.gnu.org/gnu/coreutils/coreutils-5.0.tar.gz
In the /src directory after extracting it.
and latest version of core utils can be found here
Jeegar Patel
Written first piece of code at Age 14 in HTML & pascal Written first piece of code in c programming language at Age 18 in 2007 Professional Embedded Software engineer (Multimedia) since 2011 Worked in Gstreamer, Yocto, OpenMAX OMX-IL, H264, H265 video codec internal, ALSA framework, MKV container format internals, FFMPEG, Linux device driver development, Android porting, Android native app development (JNI interface) Linux application layer programming, Firmware development on various RTOS system like(TI's SYS/BIOS, Qualcomm Hexagon DSP, Custom RTOS on custom microprocessors)
Updated on June 18, 2022Comments
-
Jeegar Patel about 2 years
See, I want the
cp
command on Android but it doesn't exist so I want to cross compile the source ofcp
.Linux has cp command, then from where can I find the code of
cp
?