Forrest logo
tool overview
On this page you find all important commands for the CLI tool smbclient. If the command you are looking for is missing please ask our AI.

smbclient

Smbclient is a command line tool used for interacting with servers that support the Server Message Block (SMB) protocol, such as Windows file servers. It provides a way to access shared resources on a network, such as files and printers. The tool runs in the command prompt or terminal, allowing users to execute various commands for file transfer and management. Smbclient offers functionalities similar to FTP, allowing users to browse directories, upload, download, and delete files. It supports both interactive and non-interactive modes, making it suitable for automation tasks. Smbclient also provides options to authenticate and connect to SMB servers with different user credentials and works with different versions of the SMB protocol, including SMB1, SMB2, and SMB3. Overall, smbclient is a versatile command line tool for interacting with SMB servers from a terminal or command prompt.

List of commands for smbclient:

  • smbclient:tldr:2a95d smbclient: Connect with a different username.
    $ smbclient ${--server-share} --user ${username}
    try on your machine
    explain this command
  • smbclient:tldr:6664d smbclient: Connect with a different workgroup.
    $ smbclient ${--server-share} --workgroup ${domain} --user ${username}
    try on your machine
    explain this command
  • smbclient:tldr:b1f3a smbclient: Upload a file to the server.
    $ smbclient ${--server-share} --directory ${path-to-directory} --command "put ${file-txt}"
    try on your machine
    explain this command
  • smbclient:tldr:bca94 smbclient: Download a file from the server.
    $ smbclient ${--server-share} --directory ${path-to-directory} --command "get ${file-txt}"
    try on your machine
    explain this command
  • smbclient:tldr:dd0b1 smbclient: List the shares from a server anonymously.
    $ smbclient --list=${server} --no-pass
    try on your machine
    explain this command
  • smbclient:tldr:f4fbe smbclient: Connect to a share (user will be prompted for password; `exit` to quit the session).
    $ smbclient ${--server-share}
    try on your machine
    explain this command
tool overview