smbclient
Verified for current stable LTS
Smbclient Command: Upload File To Share
Use for upload file to share with Smbclient. Exact CLI syntax to upload file to share using Smbclient.
When to use this: Use for upload file to share with Smbclient.
Command Syntax
smbclient -U <domain/username> //<server>/<share> -D <path/to/directory> -c 'put <path/to/local_file>' smbclient -U <domain/username> //<server>/<share> -D <path/to/directory> -c 'put <path/to/local_file>' Command Breakdown
-U- Command Option
- Tool-specific option used by this command invocation.
-D- Command Option
- Tool-specific option used by this command invocation.
-c- Command Option
- Tool-specific option used by this command invocation.
FAQ
Purpose: Exact syntax to upload file to share using Smbclient.
Test path: Replace placeholders and run destructive commands in a disposable workspace first.
Flag behavior: Tool version, platform, and shell can change behavior.
Improve This Command
Suggest a correction, safer default, or version-specific note for this entry.
Related Operations
Smbclient Command: Connect To Share Inline Password
smbclient -U <domain/username%password> //<server>/<share> Smbclient Command: Connect To Share Prompt Password smbclient //<server>/<share> Smbclient Command: Connect To Share Specific User smbclient -U <domain/username> //<server>/<share> Smbclient Command: Connect To Share Specific Workgroup smbclient -W <domain> -U <username> //<server>/<share> Smbclient Command: Download File From Share smbclient -U <domain/username> //<server>/<share> -D <path/to/directory> -c 'get <filename>'