---
layout: page
category-title: Intermediate commands
category-page: intermediate
tags: ssh copy file secure
author: Announ Marwan
title: scp
---
The scp
command name stands for Secure CoPy.
As the name suggests it's similar to the cp
command,
with the main difference being that while cp
is used to move files
in a local machine, scp
will also operate on the remote systems.
The syntax is similar to the one of the cp
command.
scp ~/Documents/list.txt protocol://user@myhost.com:/home/user/Documents/list.txtKeep in mind that
protocol://user@myhost.com
should be changed accordingly to
your use case and may require authentication on the remote server.scp protocol://user@myhost.com:/home/user/Documents/list.txt ~/Downloads/list.txtAnd it can also operate on the remote host only:
scp protocol://user@myhost.com:/home/user/Documents/list.txt protocol://user@myhost.com:/home/user/Download/shopping.txt