chaitu chaitu
asked on
how to copy folder and paste in another directory
some sub directories r there in the applications folder c:/oc4j/j2ee/home/applicat ions;
i wanted to copy applications folder and pasted in home directory and rename to node1.how to do it?
i wanted to copy applications folder and pasted in home directory and rename to node1.how to do it?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Hi chaituu,
You do not have to change directories to execute this command
cp -R /oc4j/j2ee/home/applicatio ns ~/node1
Absolute path for source and destination have been specified ... ~/ refers to home directory.
Cheers!
sunnycoder
You do not have to change directories to execute this command
cp -R /oc4j/j2ee/home/applicatio
Absolute path for source and destination have been specified ... ~/ refers to home directory.
Cheers!
sunnycoder
ASKER
i am using SSH ;can i run this command like this.
[usernamexxx@servernamexxx /]# cp -R /oc4j/j2ee/home/applicatio ns ~/node1
[usernamexxx@servernamexxx
Yes you can
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/app lications /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
if it is from a remote machine to your local machine then use
scp -r x.x.x.:/oc4j/j2ee/home/app
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
ASKER
yes
to run the above command i have to come upto this directory /oc4j/j2ee/home