Linux Terminal Glossary
›
File Operations
cp -a srcdir/ dstdir/
Category:
File Operations
cp -a srcdir/ dstdir/
Copy command
Archive copy preserving all attributes and symlinks
Copies a directory preserving all attributes (permissions, timestamps, symbolic links). -a is 'archive mode' — the safest copy.
Looking for more?
Search all 7,657 commands
— works offline, in English or Spanish, and fixes typos.