smbget

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

Install

All systems
curl cmd.cat/smbget.sh
Debian Debian
apt-get install smbclient
Ubuntu
apt-get install smbclient
Arch Arch Linux
pacman -S smbclient
image/svg+xml Kali Linux
apt-get install smbclient
CentOS
yum install samba4-client
Fedora
dnf install samba-client-2
Windows (WSL2)
sudo apt-get update sudo apt-get install smbclient
Raspbian
apt-get install smbclient

wget-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 --user username%password
  • Require encrypted transfers:
    smbget smb://server/share/file --encrypt

© tl;dr; authors and contributors