HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

smbget — `wget`-like utility for downloading files from SMB servers. More information: <https://www.samba.org

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commanddownloadinglikesmbgetcliwgetforutility
linux

Problem

How to use the smbget command: wget-like utility for downloading files from SMB servers. More information: <https://www.samba.org/samba/docs/current/man-html/smbget.1.html>.

Solution

smbgetwget-like utility for downloading files from SMB servers. More information: <https://www.samba.org/samba/docs/current/man-html/smbget.1.html>.

Download a file from a server:
smbget {{smb://server/share/file}}


Download a share or directory recursively:
smbget --recursive {{smb://server/share}}


Connect with a username and password:
smbget {{smb://server/share/file}} {{[-U|--user]}} {{username%password}}


Require encrypted transfers:
smbget {{smb://server/share/file}} {{[-e|--encrypt]}}

Code Snippets

Download a file from a server

smbget {{smb://server/share/file}}

Download a share or directory recursively

smbget --recursive {{smb://server/share}}

Connect with a username and password

smbget {{smb://server/share/file}} {{[-U|--user]}} {{username%password}}

Require encrypted transfers

smbget {{smb://server/share/file}} {{[-e|--encrypt]}}

Context

tldr-pages: linux/smbget

Revisions (0)

No revisions yet.