--- layout: page category-title: Intermediate commands category-page: intermediate tags: author: Announ Marwan title: kill ---
cp /home/SA/course/images.jpg /home/SA/MYAs you can see from the example above we use cp, to copy images from folder course into folder "MY"
scp /home/SA/course/images.jpg marwan@myhost.com:/home/SA/MYWhere marwan it's just an example(my real name..), you have to use you real host.
scp marwan@myhost.com:/home/SA/My/image1.jpg /home/SA/downloadsAs you can see from the above example, with this command you can download image1.jpg from remote
scp marwan@myhost.com:/home/user/dir1/sa.txt marwan@myhost.com:/home/SA/courseIn this example we move sa.txt from remote directory to another remote directory.
-1 to use scp with protocol 1
-2 to use scp with protocol 2
-3 to copy between 2 remote passing through local(like example above)
-4 to use scp with IPv4 addresses
-6 Guess..? to use scp with Ipv6 addresses
-C to enable compression of the encrypted connection
-c to encrypt data transfer (C and c is not the same options)
Good, now you are able to copy and move files between remote system