4 ms·
doesn't cp take -r,-R or --recursive? or is it OS specific? in Ubuntu or CentOS I believe they're all the same
by lccarrasco 10y ago
doesn't cp take -r,-R or --recursive? or is it OS specific? in Ubuntu or CentOS I believe they're all the same
- greenshackle2 10y agoIt's program specific. The vast majority of linux distros come with GNU cp, which takes either. BSD's version of cp only takes -R, Mac's too I suppose since it's BSD-based. The annoying ones on linux are chmod/chown, they take -R only. EDIT: it's OS specific in the sense that these programs follow the OS's convention, I expect BusyBox cp, a lightweight Linux version of cp, has the same options as GNU cp
- phillipwills 10y agochmod is that way because ambiguity... -r is take away read...
- chc 10y agoPOSIX only specifies -R. Actual implementations of cp can include whatever nonstandard arguments they want, such as -r in GNU cp.
- lccarrasco 10y agothanks a lot, gotta read more about POSIX ^^