orts Posted November 16, 2008 Report Share Posted November 16, 2008 Hi all How do I move or copy a directory, with a lot of sub-directorys and a lot more files, without loosing the permissions on every file and directory? I had to set special permissions on it all, because I was affraid to do something foolish like change in the wrong file. Thanks in advance. Regards Orts Quote Link to comment Share on other sites More sharing options...
ianw1974 Posted November 16, 2008 Report Share Posted November 16, 2008 If you move it, the permissions will go with it. The same with if you copy it also, from the command line though you'll have to use the command like this: cp -dpRx Documents /home/newuser/ for example would take the Documents folder and all it's contents to /home/newuser. Quote Link to comment Share on other sites More sharing options...
paul Posted November 17, 2008 Report Share Posted November 17, 2008 101 ways to skin a cat cd /path/to/source tar cf - * | ( cd /path/to/target; tar xfp -) Quote Link to comment Share on other sites More sharing options...
{BBI}Nexus{BBI} Posted November 17, 2008 Report Share Posted November 17, 2008 How about: Right-Click, Cut --> Right-Click, Paste ;) Quote Link to comment Share on other sites More sharing options...
orts Posted November 17, 2008 Author Report Share Posted November 17, 2008 Thanks guy's Allways a pleasure to ask a question in here, with all those great answers Quote Link to comment Share on other sites More sharing options...
ianw1974 Posted November 17, 2008 Report Share Posted November 17, 2008 101 ways to skin a cat Now I'm curious as to how you skin a cat :) Quote Link to comment Share on other sites More sharing options...
Greg2 Posted November 17, 2008 Report Share Posted November 17, 2008 Now I'm curious as to how you skin a cat :) skin /path/to/cat Quote Link to comment Share on other sites More sharing options...
ianw1974 Posted November 18, 2008 Report Share Posted November 18, 2008 Is that available in the Mandriva repos? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.