How to copy ?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers How to copy ?
# 1  
Old 01-09-2007
How to copy ?

HOw to copy a folder from one user to another user in UNIX ?
# 2  
Old 01-09-2007
If the another user use the same unix box as yours then you can use cp command to copy.If the user is on another system you can use ftp or rcp
# 3  
Old 01-09-2007
Quote:
Originally Posted by anbu23
If the another user use the same unix box as yours then you can use cp command to copy.If the user is on another system you can use ftp or rcp
they both are different boxes....

can u tell me in detail pls.


from /home/staff/sec/seccom to /home/proj/06/sectataj ....

i want to copy one file or one folder....
# 4  
Old 01-09-2007
Code:
ftp ipadrs
#Enter username and password
lcd path_to_file_in_your_unix_box
cd path_where_to_cp
put filename

# 5  
Old 01-09-2007
You can use rsync or scp also!
Let us consider the machines as "box1" and "box2", and i also assume that you have read/write permissions on those boxes for the corresponding users.

scp box1:/home/staff/sec/seccom box2:/home/proj/06/sectataj

Hope this works! Try 'man'ning more on rsync and scp ! Good Luck.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Copy command

Hi , I am trying to take a backup of file before overwriting it with cp command, I am using the command cp -b. -rw-rw-r-- 1 autoengine murex 0 Jan 22 07:08 a -rw-rw-r-- 1 autoengine murex 0 Jan 22 07:08 b cp -b a b -rw-rw-r-- 1 autoengine murex 0 Jan 22 07:08 a -rw-rw-r-- 1... (1 Reply)
Discussion started by: Raj999
1 Replies

2. 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

3. Solaris

Need help with copy

Hi Gurus, I need some help to fulfill the following requirement. I have a file A and some contents in it and I have file B and some conent in it. I need to append the contents on File A to FIle B. I am sure its Basics but missing it. Thank You, Rama (1 Reply)
Discussion started by: rama krishna
1 Replies

4. UNIX for Dummies Questions & Answers

What is in-core copy and disk-copy of i-node table?

I have found a question from the exercises of my study mat. The question is "Why are there a in-core copy and a disk-copy of i-node block and super block?" If any one know the proper answer then please send me..... (1 Reply)
Discussion started by: dearanik
1 Replies

5. Shell Programming and Scripting

SCP copy

I want to copy all the files and subdirectory from a server. I tried scp pritish@ipaddress:/home/pritish -r $PWD it copies all the files but not the directory, Can any one help me. I want to copy files as well as subdirectory from a server directory Note: Use CODE-tags when... (2 Replies)
Discussion started by: pritish.sas
2 Replies

6. Shell Programming and Scripting

Copy from one HD to another :)

So i have two HD full of Files, files are ordered by First letter, then inside name of the person that created and inside that the month when i was created.. So There are folders A to Z, inside these folders there are names, and inside these names months.. For example M -> Miguel x ->... (1 Reply)
Discussion started by: supermiguel
1 Replies

7. Shell Programming and Scripting

getting backup of a copy

Hi, I wrote a script file file1.sh Mistakenly I have copied some other file contents to this file, cp a.sh file1.sh is there any way to recover the original contents of the file1.sh. plz let me know, otherwise I need to write the logic again. Thanks in advance. (1 Reply)
Discussion started by: villain41
1 Replies

8. UNIX for Dummies Questions & Answers

HOw to find and copy

Hi, I need to find files in a directory, between dates like 4/15/06 and 5/02/06, and copy them to a different directory. Is there a way to doa find and a copy together? Thanks, Neil (1 Reply)
Discussion started by: aaajohnson
1 Replies
Login or Register to Ask a Question