Linux - cp: omitting directory error

When trying to use the cp command you receive the error message,

cp: omitting directory

This can be overcome by using the -r option,

cp -r [source file] [destination file]

About the Author


R Donato

Rick Donato is the Founder and Chief Editor of He currently works as an SDN/NFV Solutions Architect and has a keen interest in automation and the cloud.

You can find Rick on Twitter @f3lix001