Copy a file from Linux


 
Thread Tools Search this Thread
Homework and Emergencies Emergency UNIX and Linux Support Copy a file from Linux
# 1  
Old 07-22-2010
Copy a file from Linux

Hi Experts,

I want to copy a file from a Linux machine to another Linux machine or a windows machine shared drive.

I mean to say..

Code:
cp filename //hostname/shareddrive

I don't want to mount. Is there any way we can do it.

Regards
Naree

Last edited by Scott; 07-22-2010 at 06:14 AM.. Reason: Code tags
# 2  
Old 07-22-2010
try scp

Code:
scp username@sourcemachine:<path of the source machine> <target machine path>


Last edited by pludi; 07-22-2010 at 06:09 AM.. Reason: code tags, please...
# 3  
Old 07-22-2010
If you have SCP,

on host1:
Code:
scp filename user@host2:/path/to/copy

# 4  
Old 07-22-2010
Code:
# scp myfile.zip remoteuser@remotehost:/remote_path/

for linux you know a valid user password and its has to write perm in dir
for windows you can install openssh server (or you can ftp)
# 5  
Old 07-22-2010
I don't want to use scp as well. I know i can do it with scp. Is there anyway apart from scp.

I appreciate your help. But can you please have other than it.

Regards
Naree


---------- Post updated at 02:51 PM ---------- Previous update was at 02:50 PM ----------

Sir,

I don't want to use scp as well. Can you please suggest me anyother utility.

Regards
Naree
# 6  
Old 07-22-2010
Then you need think about Samba, or ftp.
# 7  
Old 07-22-2010
Sir,

I have read about Samba. But it says you need to mount the drive in your local machine.

But i want to avoid mounting.

Can you please guide me. I will follow it.

Regards
Naree

---------- Post updated at 02:58 PM ---------- Previous update was at 02:55 PM ----------

Quote:
Originally Posted by rdcwayx
Then you need think about Samba, or ftp.
Sir,

FTP not allowed.

I have read about Samba. But it says you need to mount the drive in your local machine.

But i want to avoid mounting.

Can you please guide me. I will follow it.

Regards
Naree

---------- Post updated at 03:45 PM ---------- Previous update was at 02:58 PM ----------

Any Help ???

Please .....

Regards
Naresh
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

how to copy the directory but not copy certain file

Hi experts cp bin root src /mnt but not copy bin/bigfile any help? ( I post this thread in the "redhat" forum wrongly, I don't know how to withdraw that question in that wrong forum) Thanks (6 Replies)
Discussion started by: yanglei_fage
6 Replies

2. IP Networking

Need to copy file from Linux to DOS.

I have two PCs with Ubuntu 10.4 and DOS 5.0, which are connected with a 9 pins serial cable. I need to copy some files from the Linux box to the DOS box. I tried UUCP but it's too difficult and i didn't found a working client for DOS. Can you help me? Thanks for any reply! (10 Replies)
Discussion started by: mghis
10 Replies

3. SuSE

I want to copy a file from Linux

Hi Experts, I want to copy a file from a Linux machine to another Linux machine or a windows machine shared drive. I mean to say.. cp filename //hostname/shareddrive. I don't want to mount. Is there any way we can do it. Regards Naree (1 Reply)
Discussion started by: naree
1 Replies

4. Shell Programming and Scripting

I want to copy a file from Linux

Hi Experts, I want to copy a file from a Linux machine to another Linux machine or a windows machine shared drive. I mean to say.. cp filename //hostname/shareddrive. I don't want to mount. Is there any way we can do it. Regards Naree Double post. Replies here moved to... (0 Replies)
Discussion started by: naree
0 Replies

5. UNIX for Dummies Questions & Answers

copy and paste certain many lines of huge file in linux

Dear All, I am working with windoes OS but remote a linux machine. I wonder the way to copy an paste some part of a huge file in linux machine. the contain of file like as follow: ... dump annealling all custom 10 anneal_*.dat id type x y z q timestep 0.02 run 200000 Memory... (2 Replies)
Discussion started by: ariesto
2 Replies

6. UNIX for Dummies Questions & Answers

command for copy file from CD to Linux box

Hi , I have simple question as i am beginner , I have to copy one file from cd(compact disc) to my linux box on some directory. With which command and how can i do that? Thanks sam71 (2 Replies)
Discussion started by: sam70
2 Replies

7. UNIX for Dummies Questions & Answers

linux, copy a:\file to /tmp in linux?

hi, i am on linux 8. i wanted to copy a file from my a:\filename to my linux 8 /tmp directroy. how do i do this or any directions as in how to accompilsh. thanks (6 Replies)
Discussion started by: yls177
6 Replies

8. Where do I download LINUX & UNIX?

Where can i get a copy of Unix or Linux?

where can i get a free copy of unix? any kind... (5 Replies)
Discussion started by: gregtampa
5 Replies
Login or Register to Ask a Question