How to share files in local network?


I've got two laptops, Lenovo with Ubuntu and a Mac, and I want to share some files, without using any external hard drives or USB sticks.


I used scp (secure file copy), which allows copying files between computers using SSH Protocol.


On my mac I run the command below, and after a while all files were transfered.

scp -r /Users/maciek/photos maciek@
  • -r - recursively copy entire directories
  • /Users/maciek/photos - absolutele path of the directory I want to copy (you could also use relative path)
  • maciek@ - [user@]host:[path]