The goal of this recipe is to transfer files between the Raspberry Pi and other computers using the command smbclient
.
This recipe shows how to list the available network shared folders, to copy individual files, and how to copy entire directories of files from a computer with shared folders to the Raspberry Pi using the smbclient
command.
After completing this recipe, you will be able to list the available file shares on the local network and transfer files directly between another computer and the Raspberry Pi using the SMB (CIFS) protocol.
Here are the ingredients for this recipe:
An initial setup or basic networking setup for the Raspberry Pi that has been powered on. You have also logged in as the user
pi
(see the recipes in Chapter 1, Installation and Setup, for how to boot and log in and the recipes in Chapter 2, Administration, for how to log in remotely).A network connection.
A client PC connected to the same network as the...