Khandaker Toihidul Islam
Front-end Developer
React Js | Javascript | HTML | CSS | Bootstrap | Wordpress | PHP | Mysql

Download and upload file from linux server

Copy files on service to local directory: You must be in local bash terminal to conduct this command, not when you are in ssh!

# scp username@domain(or ip):remote-file-path local-storage-path
example scp username@domain(or ip):home/xxx/xxx/11.jpeg /Users/username/Desktop/

copy files in local dir to remote service : also you must be in local bash terminal

# scp username@domain(or ip):local-storage-path remote-file-path
example scp username@domain(or ip):/Users/username/Desktop/ home/xxx/xxx/11.jpeg

You may also like...