Solved

how to copy folder and paste in another directory

Posted on 2006-10-19
6
219 Views
Last Modified: 2012-05-05
some sub directories r there in the applications folder c:/oc4j/j2ee/home/applications;

i wanted to copy applications folder and pasted in home directory  and rename to node1.how to do it?
0
Comment
Question by:chaitu chaitu
  • 3
  • 2
6 Comments
 
LVL 45

Accepted Solution

by:
sunnycoder earned 500 total points
ID: 17763769
Hi chaituu,

cp -R /oc4j/j2ee/home/applications ~/node1

I presumed that C: was typo - since this is Linux TA
Cheers!
sunnycoder
0
 
LVL 20

Author Comment

by:chaitu chaitu
ID: 17763777
"I presumed that C: was typo - since this is Linux TA"

yes

to run the above command i have to come upto this directory /oc4j/j2ee/home
0
 
LVL 45

Expert Comment

by:sunnycoder
ID: 17763787
Hi chaituu,

You do not have to change directories to execute this command
cp -R /oc4j/j2ee/home/applications ~/node1

Absolute path for source and destination have been specified ... ~/ refers to home directory.
Cheers!
sunnycoder
0
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
LVL 20

Author Comment

by:chaitu chaitu
ID: 17764486
i am using SSH ;can i run this command like this.

[usernamexxx@servernamexxx /]# cp -R /oc4j/j2ee/home/applications ~/node1
0
 
LVL 45

Expert Comment

by:sunnycoder
ID: 17764499
Yes you can
0
 
LVL 14

Expert Comment

by:ygoutham
ID: 17764585
hi if you want to copy from a remote server then you need to use "scp" than cp.

if it is from a remote machine to your local machine then use

scp -r x.x.x.:/oc4j/j2ee/home/applications     /path/to/local/directory

where x.x.x.x is the ip address of the server FROM which you want to copy.

if it is from within the server then you need to do only a cp.

goutham
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now