1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-28 18:15:27 +02:00

smbclient: add page (#1873)

This commit is contained in:
Starbeamrainbowlabs 2018-01-12 21:28:39 +00:00 committed by GitHub
commit 92f1203442
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

23
pages/linux/smbclient.md Normal file
View file

@ -0,0 +1,23 @@
# smbclient
> FTP-like client to access SMB/CIFS resources on servers.
- Connect to a share (user will be prompted for password; `exit` to quit the session):
`smbclient {{//server/share}}`
- Connect with a different username:
`smbclient {{//server/share}} --user {{username}}`
- 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}}"`