1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 22:24:55 +02:00
tldr/pages/linux/smbclient.md
Marco Bonelli 2599a6de48 Refactor: change "folder" to "directory" where needed.
This commit fixes every instance in which the word "folder" is
incorrectly used instead of "directory".
2019-02-13 20:51:04 +05:30

23 lines
642 B
Markdown

# 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/directory}} --command "get {{file.txt}}"`
- Upload a file to the server:
`smbclient {{//server/share}} --directory {{path/to/directory}} --command "put {{file.txt}}"`