Access Windows Shares from Linux

Access Windows Shares from Linux

To access Windows shares from Linux, you can use the smbclient command. This command allows you to connect to a Windows share and access the files on it, as well as upload and download files.

First, make sure that the smbclient package is installed on your Linux system. Then, use the following command to connect to a Windows share:

smbclient //<server>/<share> -U <username>
S‮‬ource:www.lautturi.com

Replace with the IP address or hostname of the Windows server, with the name of the shared folder, and with a valid username on the Windows server.

Once you have connected to the Windows share, you can use the ls, cd, get, and put commands to navigate the directory structure and transfer files. For example, to list the files in the current directory, use the ls command. To download a file from the Windows share, use the get command.

For more information and a full list of available commands, you can type help at the smbclient prompt.

Created Time:2017-10-18 14:57:43  Author:lautturi