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

how to copy the home directory data

 
SOLVED
Go to solution
Highlighted
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 8
Highlighted
Honored Contributor

Re: how to copy the home directory data

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

Re: how to copy the home directory data

it is possible to copy the data in normal account (i.e -rajesh account)
Highlighted
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
Highlighted
Super Advisor

Re: how to copy the home directory data

hi Shibin

thanks for your help
Highlighted
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
Highlighted
Honored Contributor

Re: how to copy the home directory data

Highlighted
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...
Highlighted
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 -