System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

how to copy the home directory data

SOLVED
Go to solution
rajesh73
Super Advisor

how to copy the home directory data


my user login name is rajesh. i want to my home directory data to suresh home directory.


how to copy the data
8 REPLIES
Shibin_2
Honored Contributor

Re: how to copy the home directory data

cp -r ~rajesh/* ~suresh/
Regards
Shibin
rajesh73
Super Advisor

Re: how to copy the home directory data

it is possible to copy the data in normal account (i.e -rajesh account)
Shibin_2
Honored Contributor
Solution

Re: how to copy the home directory data

If you have write permission to suresh's home directory, you can copy using the above command.

Otherwise, you may ask suresh to copy from your home directory. Or else, use root access to do it.
Regards
Shibin
rajesh73
Super Advisor

Re: how to copy the home directory data

hi Shibin

thanks for your help
rajesh73
Super Advisor

Re: how to copy the home directory data

Hi Shibin ,

i have one more doubt,

i am newly insalled hp-ux 11.31 ,kindly advice after os installation we need to check any procedure (i.e service start and disable unwanted services through inetd.conf file.)

if you have any document pls share
Shibin_2
Honored Contributor

Re: how to copy the home directory data

James R. Ferguson
Acclaimed Contributor

Re: how to copy the home directory data

Hi:

> i am newly insalled hp-ux 11.31 ,kindly advice after os installation we need to check any procedure (i.e service start and disable unwanted services through inetd.conf file.)

Basttille does this and much more. See:

http://bizsupport.austin.hp.com/bc/docs/support/SupportManual/c02244038/c02244038.pdf

Regards!

...JRF...
Dennis Handly
Acclaimed Contributor

Re: how to copy the home directory data

>Shibin: cp -r ~rajesh/* ~suresh/

Unless you are root, this won't copy the "." files, unless you use a better pattern.
You could use a tar/pax pipeline:
cd ~suresh
tar -cf - -C ~rajesh . | tar -xf -