How to share files in local network?
·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 firstname.lastname@example.org:/home/maciek/
-r- recursively copy entire directories
/Users/maciek/photos- absolutele path of the directory I want to copy (you could also use relative path)