![]() |
unix question
lets say I have a folder by the name of "myfolder"
which subfolders: "folder1" "folder2" and "folder3" how do use the "cp" command to copy everything in folder "myfolder" including subfolders excluding "folder2"? |
Geeks where are you?
|
http://www.us-webmasters.com/FreeBSD...-unix-FreeBSD/
I think you need to add -r for recursive. Hope that helps. |
Quote:
Anyway here's another bump for you :thumbsup |
I dont think you can exclude a sub folder either.
cp -rf folder would force to copy the folder recursive |
for example:
ln -s myfolder/* . |
I know you can tar the directories and by use of a text file with the folders you don't want listed in there, the tar will exclude anything you don't want. Then just move the tarball to where you want and untar.
I don't remember how exactly to do it, but I've used it on copying huge photoset directories with tons of folders and files I didn't want and tons that I did. |
cp -rp
- the p will preserve the file attributes |
All times are GMT -7. The time now is 07:32 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123