Difference between revisions of "Smbclient"

From ArchWiki
Jump to: navigation, search
m (Bot: Removing from Category:HOWTOs (English))
Line 1: Line 1:
[[Category:Networking (English)]]

Revision as of 17:48, 23 April 2012

This template has only maintenance purposes. For linking to local translations please use interlanguage links, see Help:i18n#Interlanguage links.

Local languages: Català – Dansk – English – Español – Esperanto – Hrvatski – Indonesia – Italiano – Lietuviškai – Magyar – Nederlands – Norsk Bokmål – Polski – Português – Slovenský – Česky – Ελληνικά – Български – Русский – Српски – Українська – עברית – العربية – ไทย – 日本語 – 正體中文 – 简体中文 – 한국어

External languages (all articles in these languages should be moved to the external wiki): Deutsch – Français – Română – Suomi – Svenska – Tiếng Việt – Türkçe – فارسی

Tango-document-new.pngThis article is a stub.Tango-document-new.png

Notes: please use the first argument of the template to provide more detailed indications. (Discuss in Talk:Smbclient#)

smbclient is an FTP-like client to access SMB/CIFS resources on servers. See also: Samba


smbclient can be installed with:

# pacman -S smbclient

Essential commands

To display public shares on the server:

$ smbclient -L <hostname> -U%

To connect to a share:

$ smbclient //<hostname>/<share> -U<username>%<password>

Commonly used commands

help [command] or ? [command] show all available commands or give help about a specific command
put <local name> [remote name] upload a file
get <remote name> [local name] download a file
ls [mask] list current directory content
cd [directory] change current directory; without the argument print working directory
lcd <directory> change local working directory
mget <mask> download all files matching mask
mput <mask> upload all files matching mask
recurse enable recursive directory download/upload with mget/mput commands
prompt toggle prompting on every single file or directory when using mget/mput commands. By default prompting is enabled
 !<local command> execute a local command and capture output