Unix/Linux Go Back    


UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

learn unix and linux commands

recursive copy of hidden files

UNIX for Advanced & Expert Users


Closed    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 02-19-2002   -   Original Discussion by usfrog
usfrog's Unix or Linux Image
usfrog usfrog is offline
Registered User
 
Join Date: Dec 2001
Last Activity: 9 July 2009, 9:28 PM EDT
Location: San Jose CA
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
recursive copy of hidden files

I need to know how to copy hidden files recursively?

cp -r sourceDir/* targetDir/.

ignores the hidden files.

Thank you!!
Sponsored Links
    #2  
Old Unix and Linux 02-19-2002   -   Original Discussion by usfrog
thehoghunter's Unix or Linux Image
thehoghunter
Guest
 
Posts: n/a
Take the wildcard off.

This worked for me (Solaris 2.6)

cp -r sourceDir/ targetDir/
Sponsored Links
    #3  
Old Unix and Linux 02-19-2002   -   Original Discussion by usfrog
usfrog's Unix or Linux Image
usfrog usfrog is offline
Registered User
 
Join Date: Dec 2001
Last Activity: 9 July 2009, 9:28 PM EDT
Location: San Jose CA
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Bug

Thank you!
It worked!!
Sponsored Links
Closed


Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
recursive search and copy cabaciucia Shell Programming and Scripting 1 02-02-2012 07:53 AM
Recursive copy to a RANDOM name xerexes UNIX for Dummies Questions & Answers 10 10-23-2008 08:19 AM
recursive copy of the directory deepthi.s Programming 7 08-23-2008 02:06 PM
Finding Hidden files and protecting the folder containing hidden files from deletion pochaw Shell Programming and Scripting 4 12-22-2007 01:33 AM
how to copy hidden files from one folder to another rajan_ka1 UNIX for Dummies Questions & Answers 1 11-07-2005 09:04 AM



All times are GMT -4. The time now is 03:40 PM.