Solved

how to copy folder and paste in another directory

Posted on 2006-10-19
6
227 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 
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

Containers & Docker to Create a Powerful Team

Containers are an incredibly powerful technology that can provide you and/or your engineering team with huge productivity gains. Using containers, you can deploy, back up, replicate, and move apps and their dependencies quickly and easily.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses

630 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