# UNIX command to copy files from Windows to UNIX box

**URL:** <https://community.unix.com/t/unix-command-to-copy-files-from-windows-to-unix-box/336481>\
**Category:** Shell Programming and Scripting\
**Created:** [November 10, 2013, 10:06am UTC](https://community.unix.com/t/unix-command-to-copy-files-from-windows-to-unix-box/336481 "2013-11-10T10:06:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![punpun66](https://community.unix.com/letter_avatar/punpun66/32/5_5575768a8748004e209b776fc1b2916d.png) [@punpun66](https://community.unix.com/u/punpun66)\
**Post date:** [November 10, 2013, 10:06am UTC](https://community.unix.com/t/unix-command-to-copy-files-from-windows-to-unix-box/336481/1 "2013-11-10T10:06:59Z")

</div>

Hi Folks,

I have a file name abc.xml in my windows machine at the location c:\ytr\abc.xml  
which I want to place at the unix box machine inside cde directory.. at the following location that is /opt/app/cde/  
now the credentials of unix box are

abc345 --\>(dummyid)  
ftyiu88---\>(dummy passwd)

please advise the unix command to achieve this which I can write when I login to putty, I have tried but it is not working..😕

---

<div class="post-metadata">

**Author:** ![Bashar](https://community.unix.com/user_avatar/community.unix.com/bashar/32/3703_2.png) [@Bashar](https://community.unix.com/u/Bashar)\
**Post date:** [November 10, 2013, 10:13am UTC](https://community.unix.com/t/unix-command-to-copy-files-from-windows-to-unix-box/336481/2 "2013-11-10T10:13:09Z")

</div>

you want to send the file to this directly using ftp, rcp or scp ?

---

<div class="post-metadata">

**Author:** ![punpun66](https://community.unix.com/letter_avatar/punpun66/32/5_5575768a8748004e209b776fc1b2916d.png) [@punpun66](https://community.unix.com/u/punpun66)\
**Post date:** [November 10, 2013, 10:15am UTC](https://community.unix.com/t/unix-command-to-copy-files-from-windows-to-unix-box/336481/3 "2013-11-10T10:15:50Z")

</div>

> [@bashar](#):
>
> you want to send the file to this directly using ftp, rcp or scp ?

Well with SCP is best , I will log in to putty and then want to execute command..!!

---

<div class="post-metadata">

**Author:** ![Aia](https://community.unix.com/user_avatar/community.unix.com/aia/32/917_2.png) [@Aia](https://community.unix.com/u/Aia)\
**Post date:** [November 10, 2013, 10:42am UTC](https://community.unix.com/t/unix-command-to-copy-files-from-windows-to-unix-box/336481/4 "2013-11-10T10:42:54Z")

</div>

```nohighlight
c:\> pscp "c:\ytr\abc.xml" user@linux_host:"/opt/app/cde"

```

---

<div class="post-metadata">

**Author:** ![Bashar](https://community.unix.com/user_avatar/community.unix.com/bashar/32/3703_2.png) [@Bashar](https://community.unix.com/u/Bashar)\
**Post date:** [November 10, 2013, 10:44am UTC](https://community.unix.com/t/unix-command-to-copy-files-from-windows-to-unix-box/336481/5 "2013-11-10T10:44:51Z")

</div>

and if you want to scp many files without entering the password everytime setup ssh keys for auto login and copy the file
