Basic Linux Commands
1] useradd ( Creating users ) :-
useradd Linux command creates a new user account using the values specified on the command line and the default values from the system. The new user account will be entered into the system files as needed, the home directory will be created, and initial files copied, depending on the command line options. The version provided with Red Hat Linux will create a group for each user added to the system, unless the -n option is given.
useradd’s basic syntax is
useradd [options] [username]
Ex:
useradd student
===========================================
2] usermod ( Edit or modify user information ) :-
usermod Linux command modifies the system account files to reflect the changes that are specified on the command line. The options which apply to the usermod command are:
usermod’s basic syntax is
usermod [-c comment] [-d home_dir [-m]]
Ex:
usermod -d /home/newbob bob
===========================================
3] userdel ( Deleting a user ) :-
userdel Linux command modifies the system account files, deleting all entries that refer to login. The named user must exist.
userdel’s basic syntax is
userdel [-r] login
Ex:
userdel -r student
===========================================
4] groupadd ( Creates a new group account ) :-
groupadd Linux command creates a new group account using the values specified on the command line and the default values from the system. The new group will be entered into the system files as needed.
groupadd’s basic syntax is
groupadd [options] groupname
Ex:
groupadd hioxindia
===========================================
5] groupmod ( modify group ) :-
groupmod Linux command modifies the definition of the specified GROUP by modifying the appropriate entry in the group database.
groupmod’s basic syntax is
groupmod [options] newname oldname
Ex:
groupmod -n vizhi vizhi1
===========================================
6] groupdel ( remove a group ) :-
groupdel Linux command modifies the system account files, deleting all entries that refer togroup.
groupdel’s basic syntax is
groupdel group
Ex:
groupadd hioxindia
===========================================