Copy files with the cp command. Copy file bằng lệnh cp.
Use the "cp" command Sử dụng lệnh "CMD"
For example, in the DOS environment, to copy, you must remember the cp command, remember its syntax, and in Windows, we just right-click, select Copy is complete. Ví dụ: trong môi trường DOS, để copy thì bạn phải nhớ lệnh cp, nhớ cú pháp của nó, còn ở Windows, chúng ta chỉ việc nhấn phím phải chuột, chọn Copy là xong.
For example, in the DOS environment, to copy, you must remember the cp command, remember its syntax, and in Windows, we just right-click, select Copy is complete. Ví dụ: trong môi trường DOS, để copy thì bạn phải nhớ lệnh copy, nhớ cú pháp của nó, còn ở Windows, chúng ta chỉ việc nhấn phím phải chuột, chọn Copy là xong.
Sometimes, while copying a large file, like a movie or an operating system image, the cp command takes longer than expected based on the load on your system. Đôi khi, trong khi sao chép một tệp lớn, như phim hoặc hình ảnh hệ điều hành, lệnh cp mất nhiều thời gian hơn dự kiến dựa trên tải trên hệ thống của bạn.
What we are going to do now, is to take a file stored in an open access area of the file system, and use the cp command to copy it to your unixstuff directory. Những gì chúng ta sẽ thực hiện ở đây là lấy một file đã được lưu trong một vùng truy cập mở nào đó của hệ thống file và sử dụng lệnh này để copy nó vào thư mục unixstuff.
For example, I tried copying a huge file from my pen-drive to my Linux box, and as the cp command was executed, I immediately switched to another shell tab and executed the following command: Ví dụ, tôi đã thử sao chép một tập tin khổng lồ từ ổ đĩa bút vào hộp Linux của tôi, và khi lệnh cp được thực hiện, tôi ngay lập tức chuyển sang một tab shell khác và thực hiện lệnh sau: