Copy all files (including hidden) on Linux type OS

May 7, 2022 - Reading time: ~1 minute

In order to copy all files in a directory using the cp command use the -T switch. The man page says:

-T, --no-target-directory
              treat DEST as a normal file

This will copy all files including the (.) dot files to the destination. If the destination doesn't exist, it will be created.

LazyCoderOZ

I am a Linux guy, been around for 20+ years using Linux as my daily driver.
This is my blog on my discoveries and notes so I don't forget how I have done things :)