![]() ![]() Here’s what the output will be in our case: sent 110 bytes received 35 bytes 290.00 bytes/sec ![]() This allows you to confirm the copy was successful. Here -v is short for “verbose.” It causes the details of the file transfer to appear, similar to the -v option in the cp command. If we want to copy the file to dir_2, here’s what the rsync command to do the same would look like. RELATED: How to Use rsync to Backup Your Data on LinuxĬonsidering that we have two directories dir_1, dir_2, and a file Test.txt in dir_1. ![]() However, it also allows copying files and directories on the same PC. The rsync command stands for “Remote Sync” and is primarily used to transfer files and directories between computers on the same network. RELATED: 37 Important Linux Commands You Should Know Using the Rsync Command The output would look like this: 'Test_Example.txt' -> 'dir_1/Test_Example.txt To display the output of the copy operation, you’d use the -v option. If you’re unsure if the file or directory was copied to the destination location, you can also use the option -v to print the names of the files or directories that were copied (like a computer program output).įor example, let’s assume that there’s a file Test_Example that needs to be copied to dir_1. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |