Solved

how to copy folder and paste in another directory

Posted on 2006-10-19
6
222 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
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Site-to-Site VPN OpenSWAN in AWS VPC to a Sonicwall 5 66
Linux as a middle box 7 62
How to mount an LVM partition that is part of a disk image. 3 48
php ssh2_scp_send 1 47
Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

911 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

18 Experts available now in Live!

Get 1:1 Help Now