Linux Operating System
I’m mostly a user of Arch Linux and even though the documents found here will mostly refer specifically to this distro, most of the time this information could be perfectly used (and applied) on other distros like Debian, Ubuntu Manjaro, etc… Even Raspbian.
What will you find here?
This section contains commands, tips, tricks and general information about the Linux operating system.Command Line Tips
Command line tips and tricks plus syntax that I never remember.
Copy full folder
You can copy the content of a folder /source
to another existing folder /dest
, including hidden files, with the command:
$ cp -a /source/. /dest/
- The
-a
option is an improved recursive option, that preserve all file attributes, and also preserve symlinks. - The
.
at end of the source path is a specificcp
syntax that allowes to copy all files and folders, including hidden ones.