Linux System File Management User Group Operations Command Summary

Source: Internet
Author: User

1. view commands for file contents

Cat TAC less more head tail

=======================================

2. actions for users and Groups

Useradd -New User

-U-Specify UID when creating new user

-G-Specify user default group when new user

-G-Specify user-attached groups

-S-Specify user login Shell

-D-Specify user plus directory

Default group: There is only one

Additional groups: You can have more than one


Usermod -Modify User Properties

-U-Modify User uid

-G-Modify user default group

-G-Modify user Attach Group

-ag-Append user additional groups

-S-Modify user login Shell

-D-Modify user home directory


Userdel -Delete User

-R-Delete all user files


passwd -Set Password


Groupadd -Add Group

-G-Specify GID

Groupmod -Modify Group Properties

-G-Modify GID

Groupdel Delete a group, if there are users in the group, you need to change the user's group to a different group first.


Chage Modify the account and password for a limited period


ID Displays the ID of the user and the ID of the owning group


Grpconv used to turn on the group's projection password


Pwunconv to turn off the user's projection password


Nologin Deny user Login


CHPASSWD Tools for batch update of user passwords


GRPCK used to verify the integrity of a group file


CHSB used to replace the shell used when logging in to the system


GPASSWD management tools for workgroup files under Linux


Pwck used to verify the contents and format and integrity of system authentication files


NewUsers for batching How to create multiple commands at once


LogName used to display user names


Groups used to print the workgroup to which the specified user belongs


Finger used to find and display user information

Linux System File Management User Group Operations Command Summary

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.