I am using cp
command in my program to make a copy of a text file. But when I use -p -i
with cp
I don't understand the difference between the both.
What's the difference between using simple cp and using options -p -i with it? Here is my line code:
execl("/bin/cp","cp","-p","-i",argv[1],argv[2],NULL);