From 17d346e2276710b969f79accbc2e3ae028d89efc Mon Sep 17 00:00:00 2001 From: Jeremy Liberman Date: Tue, 9 Jan 2018 14:19:25 -0600 Subject: [PATCH] smbclient: add page --- pages/linux/smbclient.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 pages/linux/smbclient.md diff --git a/pages/linux/smbclient.md b/pages/linux/smbclient.md new file mode 100644 index 0000000000..c167ed1bb6 --- /dev/null +++ b/pages/linux/smbclient.md @@ -0,0 +1,19 @@ +# smbclient + +> FTP-like client to access SMB/CIFS resources on servers. + +- Connect to a share (`exit` to quit the session): + +`smbclient {{//server/share}}` + +- Connect with a username and password: + +`smbclient {{//server/share}} --user {{username%password}}` + +- Download a file from the server: + +`smbclient {{//server/share}} --directory {{path/to/folder}} --command "get {{file.txt}}"` + +- Upload a file to the server: + +`smbclient {{//server/share}} --directory {{path/to/folder}} --command "put {{file.txt}}"`