Maciek Sitkowski
Maciek's Blog


Maciek's Blog


How to share files in local network?

Maciek Sitkowski's photo
Maciek Sitkowski
·Oct 29, 2022·

1 min read


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]
Share this