Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

scp send folder

# Copy a file from remote to local
scp login@example.com:/path/to/file.txt/ /path/to/destination/directory/ 
# Copy a file from local to remote
scp /path/to/file.txt login@example.com:/path/to/destination/

# Copy a folder from remote to local
scp -r login@example.com:/path/to/source/folder /path/to/destination/directory/
# Copy a folder from local to remote
scp -r /path/to/source/folder login@example.com:/path/to/destination/directory/
 
PREVIOUS NEXT
Tagged: #scp #send #folder
ADD COMMENT
Topic
Name
6+7 =