cp command in Linux with Examples

cp command means Copies files or directories.

cp command in Linux with Examples

Syntax

cp [option]… [-T] source destination
cp [option]… source… directory
cp [option]… -t directory source…
cp –help
cp –version

On the man page, the describes it

  • cp – copy files and directories
  • man cp – More details information.

cp command in Linux with Examples

$ cp source.txt destination.txt

Conclusion

cp command is a simple command in Linux. It is the most popular in use terminal Linux copy files and directories. Thank you for reading the DevopsRoles page!

About HuuPV

My name is Huu. I love technology, especially Devops Skill such as Docker, vagrant, git, and so forth. I like open-sources, so I created DevopsRoles.com to share the knowledge I have acquired. My Job: IT system administrator. Hobbies: summoners war game, gossip.
View all posts by HuuPV →

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.