Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a dir which I can access from my windows machine goes like \\servername\directory and I can see all the files in there, is it possible that I can wget or something those files inside this directory to my remote linux machine, both of these windows and linux machines are remote.

share|improve this question
up vote 2 down vote accepted

The easiest option is to use Samba to access the Windows share from your Linux system.

On most modern Linux systems, you can mount a samba share as:

mount '//servername/directory' /mnt -o 'user=mydomain\myusername'

(note the single quotation marks, and that the backslashes in the server designation are converted to forward slashes). The last part "-o..." is optional, only necessary if you need to authenticate to the share, then you need to specify logon domain+username. You will then be prompted for a password.

Most Linux systems also have a graphical way to access this (e.g. network display in Ubuntu).

After mounting, the remote directory will appear like a local directory to you.

If this does not work for you, please edit your question with more details.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.