To copy files from a local system to a remote server or remote server to a local system, we can use the command 'scp' . 'scp' stands for 'secure copy' and it is a command used for copying files through the #terminal. We can use 'scp' in Linux, Windows, and Mac.
To upload file through terminal:
- local. txt is your local file,
- user is your server user (the same as ssh user),
- mysite.com is your server host,
- /var/www is a directory on your server where you want to upload your files.
upload file command line #linux
#sftp upload file command line
how to upload files on terminal
sftp> put command
sftp put command options
upload file to linux server from windows
command line file transfer