r/shell • u/Philosophical-Kiwi • Feb 25 '26
Copying files from SMB (MacOS)
Hi all,
I’m having a bit of trouble so I thought maybe someone had the answer.
Would anybody know how to connect to an SMB and copy a specific file to the desktop on MacOS, all via a shell script.
5
Upvotes
1
u/Evil-Toaster Feb 25 '26
Look up the scp command that may work fou you
1
u/siguy Feb 26 '26
One mount command and one copy command and you're good.
0
u/ipsirc Feb 25 '26
https://copilot.microsoft.com/