Linux command
smbget 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
Download
smbget smb://server/share/file
Example
smbget --recursive smb://server/share/
Example
smbget -U username%password smb://server/share/file
Example
smbget -e smb://server/share/file
Resume
smbget -r smb://server/share/file
Example
smbget -u smb://server/share/file
Example
smbget --stdout smb://server/share/file
说明
smbget is a simple utility with wget-like semantics that can download files from SMB servers. Files are specified using SMB URL format.
参数
- -r, --resume
- Automatically resume interrupted downloads
- --recursive
- Download directories and their contents recursively
- -u, --update
- Only download files newer than local copies
- -o, --outputfile FILE
- Specify output filename
- --stdout
- Write downloaded data to stdout
- -U, --user=DOMAIN/USERNAME%PASSWORD
- Specify SMB credentials
- -a, --guest
- Connect as guest user
- -e, --encrypt
- Enable SMB encryption for transfer
- -N, --no-pass
- Do not prompt for password
- -W, --workgroup=WORKGROUP
- Specify SMB workgroup/domain
- -A, --authentication-file=FILE
- Read credentials from file
- --limit-rate=INT
- Limit download bandwidth in KB/s
- -q, --quiet
- Suppress output messages
- -v, --verbose
- Enable verbose output
- -D, --dots
- Show progress dots
FAQ
What is the smbget command used for?
smbget is a simple utility with wget-like semantics that can download files from SMB servers. Files are specified using SMB URL format.
How do I run a basic smbget example?
Run `smbget smb://server/share/file` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -r, --resume do in smbget?
Automatically resume interrupted downloads