Implemented Linux cp utility using Linux API