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]

Rick Donato

Want to become a Linux expert?

Here is our hand-picked selection of the best courses you can find online:
Linux Mastery course
Linux Administration Bootcamp
and our recommended certification practice exams:
AlphaPrep Practice Tests - Free Trial