cp

mark m.roth2006 at rcn.com
Sun Mar 15 19:05:03 UTC 2009


Madan Thapa wrote:
> On Sun, Mar 15, 2009 at 11:44 PM, mark <m.roth2006 at rcn.com> wrote:
> 
>> Raj Har wrote:
>>> hello everybody,
>>>                         i am new in Linux so please help me.
>>> i made users like user1,user2,user3,user4.not from useradd command.
>>> and i wanna copy all skel file in these users home directory.
>>> i am using this command.
>>> cp -rf /etc/skel/.bash* /home/user*
>>> but its not working.
>>>
>>> and i wanna know exact mean of  "-r" option.
<snip>
useradd(8)                                                          useradd(8)

NAME
       useradd - create a new user account

SYNOPSIS
       useradd [-D binddn] [-P path] [-c comment] [-d homedir]
               [-e expire] [-f inactive] [-G group,...] [-g gid]
               [-m [-k skeldir]] [-o] [-p password] [-u uid]
               [-r] [-s shell] [--service service] [--help]
               [--usage] [-v] account

       useradd --show-defaults

       useradd --save-defaults [-d homedir] [-e expire] [-f inactive]
               [-g gid] [-G group,...] [-k skeldir] [-s shell]

DESCRIPTION
       useradd  creates  a  new  user  account  using  the default values from
       /etc/default/useradd and the specified on the command line.   Depending
       on the command line options the new account will be added to the system
       files or LDAP database, the home directory will be created and the ini-
       tial default files and directories will be copied.
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

	mark





More information about the redhat-list mailing list