DigiNews

Tech Watch by Johan Denoyer

← Back to articles

cp: -r or -R?

Quality: 8/10 Relevance: 9/10

Summary

The post examines the historical difference between cp -r and -R, noting that GNU coreutils merged the options decades ago and that today they are effectively the same. It also highlights OpenBSD and NetBSD practices of using -R and discusses POSIX guidance favoring -R for consistency across utilities. The piece emphasizes why portable scripting should prefer -R to avoid cross-system inconsistencies.

🚀 Service construit par Johan Denoyer