Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to copy dictory and file together.

Status
Not open for further replies.

koeicjm

Programmer
Sep 12, 2001
73
JP
there are dictories and files too in a dictory, I want copy them to another dictory , how can I do it ?
I try cp -rp src_dir/* dist_dir/
but failed
 
Try as

cp -r source_dir dest_dir

say u want to copy files and subdirectories in temp to another new directory temp1 then

cp -r temp temp1

Shantha
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top