The Linux cp command copies a tệp tin or a thư mục on a computer. You can move one or more files and folders at the same time. The syntax for cp is the name of the file to be copied followed by the place the copy should be located.

Copying files and folders is a task almost everyone who works with Linux performs on a daily basis. But, using the command line, it’s not as simple as dragging a file into another window on your computer. Rather, you need to lớn use the cp command lớn copy files & folders.




Bạn đang xem: How to copy files and directories in linux

*
*
*
*
*
*
*

James Gallagher is a self-taught programmer and the technical content manager at Career Karma. He has experience in range of programming languages and extensive expertise in Python, HTML, CSS, and JavaScript. James has written hundreds of programming tuto... Read more


Xem thêm: Truyện Cổ Tích Ba Cô Gái

Many careers in tech pay over $100,000 per year. With help from Career Karma, you can find a training program that meets your needs and will set you up for a long-term, well-paid career in tech.


By continuing you agree to lớn our Terms of Service and Privacy Policy, and you consent to lớn receive offers & opportunities from Career Karma by telephone, text message, và email.