Friday, 29 May 2020

How to upload local file to server through Linux terminal

To add on to Jake’s answer, you could specify a location—instead of just .—to copy to by adding the path at the end of the URL as:

scp /path/to/file username@servername/ip:/destination/folder/

No comments:

Post a Comment

How does one detect if one is running within a docker container within Python?

  import os, re path = "/proc/self/cgroup" def is_docker (): if not os.path.isfile(path): return False with open (pa...