• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
sharadchhetri

sharadchhetri

Tutorials On Linux, Unix & Open Source

  • Home
  • Linux Commands
  • Resources
    • Learn Linux
  • My WordPress plugins

Command to create and delete group in Red Hat and CentOS linux

December 5, 2013 by Sharad Chhetri Leave a Comment

Command to create and delete group in Red Hat and CentOS linux

Question: How to create and delete the group in Linux (Red Hat or CentOS) by using command line
Answer: To create and delete the group in linux,follow the given below steps.

To create new group ,use given below command

Syntax:

groupadd groupname

Example

groupadd accounts

To delete group ,use given below command

Syntax:

groupdel groupname

Example:

groupdel accounts

Note: When you create a new group you will find the entry in /etc/group file.
As per example, we have created a new group called accounts, you can see its entry in /etc/group file.
See the below given screenshot

groupadd

Share this:

  • Twitter
  • Facebook
  • More
  • Print
  • Email
  • LinkedIn
  • Reddit
  • Tumblr
  • Pinterest
  • Pocket
  • Telegram
  • WhatsApp
  • Mastodon

Related posts:

  1. create and delete user in Red Hat and CentOS
  2. Set group password,its use and check which group after newgrp command in linux
  3. man command not found in CentOS and Red Hat
  4. Allow only members of Wheel group to use su command on RHEL/CentOS
  5. make command not found in linux CentOS Red Hat ubuntu Debian
  6. netstat command not found on CentOS 7 and RHEL 7 (Red Hat Enterprise Linux 7)
  7. How to create multiple mysql instance in CentOS 6.4 and Red Hat 6.4
  8. Recover Linux Grub Password in linux rescue mode CentOS/Red Hat
  9. scp command not found in CentOS and Red Hat
  10. mail command not found in Red Hat CentOS Ubuntu Debian

Filed Under: Linux Commands Tagged With: create group, delete group, linux command

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Our Social Media Presence

  • Facebook
  • GitHub
  • Twitter

Linux Command

What is Linux Internal And External Command

Linux Basic Commands With Examples For Every Beginner

tr command to convert lines to space , tab and vertical tab

smbpasswd command not found on CentOS 7 and RHEL 7

Solution : semanage command not found

Unix / Linux : How to print duplicate lines from file

More Posts from this Category

You Might Like These Articles!

simplecodesyntax wordpress plugin

SimpleCodeSyntax : My Another WordPress Plugin

Install Nginx

How To Install Nginx On Ubuntu 22.04 LTS

Install Latest Git package in Ubuntu Operating System

How To Always Install Latest Git Package In Ubuntu Operating System

Bash script for installing VirtualBox on Ubuntu 22.04 LTS Desktop

Install VirtualBox On Ubuntu 22.04 LTS Desktop (Bash Script)

libfuse

dlopen(): error loading libfuse.so.2 – Got Error On Ubuntu

Failed to open/create the internal network

VirtualBox Error: Failed to open/create the internal network

Always Useful Tips And Tricks

How To Get SSH Public Key Fingerprint Information

Convert new line to space by using sed command

Non interactive ,without typing password do ssh to Server : By sshpass

How to see system load average in terminal with graphical representation

How to add/install Ubuntu fonts in CentOS/Red Hat Linux

AttributeError: ‘WSGIRequest’ object has no attribute ‘session’ Django python web framework

How to see line numbers in file through cat command

Explore 90+ Article On "Linux Tips And Tricks"

Copyright © 2023 ยท
The material in this site cannot be republished either online or offline, without our permission.
Proudly Blogging From Bharat.

  • Contact
  • About Me
  • My WordPress plugins
  • Privacy Policy