smbclient //server/share -U user -c 'get report.pdf'

Category: Local Network & Public Hosting

smbclient //server/share -U user -c 'get report.pdf'

Download a file from an SMB share

The get command fetches report.pdf from the share into the current directory, and wrapping it in -c runs the session non-interactively. Multiple commands can be chained inside the quotes with semicolons. This is the quick way to pull one file without mounting the share.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.