[NBLUG/talk] Moving permissions

Lincoln Peters sampln at sbcglobal.net
Sun Jan 18 07:45:01 PST 2004


On Sun, 2004-01-18 at 07:34, Todd Cary wrote:
> I have a "home" directory on one computer and I want to move it to 
> another.  Is it possible to move the permissions with it?

Use the "-p" switch to give the new files and directories the same
permissions as the old ones.  It works with "mv", "cp", "tar", and
virtually any other command that involves moving or copying files.  For
example:

mv -p /old/home /new/home

-- 
Lincoln Peters <sampln at sbcglobal.net>




More information about the talk mailing list