SlideShare une entreprise Scribd logo
1  sur  6
Télécharger pour lire hors ligne
 TOP MENU
Apr 23, 2023  Facebook
 Twitter
 LinkedIn
  fa-you
JOIN TO OUR FACEBOOK GROUP

 MAIN MENU
Cheat Sheets Linux
User Management Command Cheat Sheet
Last updated on April 11th, 2023 - by John Gomez - Leave a Comment
Linux user management commands create, modify, and delete user accounts and
groups. Similarly, these commands are used to manage user account properties
such as login shells, primary groups, and passwords. User management
commands help system administrators control access to resources and manage
user permissions on Linux systems to ensure security and accessibility.
Command Description
useradd
By using this command, you can create a new user account on
the system.
usermod
This command is used to modify an existing user account, such
as changing the user's password or group membership.
userdel
This command is used to delete an existing user account from
the system.
passwd This command is used to change a user's password.
groupadd This command is used to create a new group on the system.
groupmod
This command is used to modify an existing group, such as
changing the group's name or membership.
groupdel
This command is used to delete an existing group from the
system.

Page 1 of 6
Command Description
id
This command is used to display information about a user or
group, including their user ID and group membership.
chown This command is used to change the owner of a 몭le or directory.
chgrp
This command is used to change the group ownership of a 몭le or
directory.
chmod
This command is used to change the permissions of a 몭le or
directory.
su
This command is used to switch to another user account or
become a superuser.
sudo
This command is used to execute a command with elevated
privileges.
whoami
This command is used to display the username of the current
user.
w
This command is used to display information about logged-in
users and their activity on the system.
몭nger [username]
Displays detailed information about a user, including their login
name, home directory, and shell.
last
Displays information about the last logged-in users on the
system.
who
Displays information about currently logged-in users in the
system.
adduser
[username]
Create a new user account with interactive prompts to enter user
details.
deluser [username] Deletes a user account and their home directory from the system.
newgrp
[groupname]
Change the user's primary group membership to a new session.
usermod -aG
[groupname]
[username]
Adds a user to an additional group.
chsh -s [shellpath]
[username]
Change the user's login shell.
chfn [username]
Change the user's full name and other details in the system
password 몭le.
Page 2 of 6
Command Description
Comment *
Leave a Reply
Your email address will not be published. Required 몭elds are marked *
visudo
Edit the sudo con몭guration 몭le, which controls which users can
execute commands with elevated privileges.
About John Gomez
John Britto Founder & Cheif-Editor @LinuxTeck. A Computer Geek and Linux
Intellectual having more than 10+ years of experience in Linux and Open Source
technologies.
View all posts by John Gomez →
RELATED POST
Docker Management Command Cheat Sheet
April 16,2023
Linux Database Management Command Cheat Sheet
April 14,2023
Linux System Initialization Command Cheat Sheet
April 14,2023
PREVIOUS ARTICLE
Linux System Information Command Cheat
Sheet
NEXT ARTICLE
Linux Network Command Cheat Sheet
Page 3 of 6
Comment *
Name *
Email *
Website
Save my name, email, and website in this browser for the next time I comment.
POST COMMENT
TRENDING
Linux Package Management Command Cheat Sheet
How to set up FTP server in Rocky Linux 8.4
How to secure FTP Server with SSL/TLS in Rocky Linux
How to set up an SFTP server on Rocky Linux 8
How to set up MariaDB on Rocky Linux 8
How to Install and use phpMyAdmin on Rocky Linux
How to Install Rocky Linux 9 {Step by Step} with Screenshots
Page 4 of 6
Linux Package Management Command Cheat Sheet
Apr 07, 2023
How to set up FTP server in Rocky Linux 8.4
Nov 23, 2021
How to Install Ubuntu 22.04 LTS {Step by Step} with Screenshots
Install LAMP Stack on Rocky Linux 9 {Step by Step}
How to install Apache on Rocky Linux 9
First name or full name
Email
I want to receive a newsletters
SUBSCRIBE
Popular Comments Tags
Copyright © 2023 LinuxTeck. All Rights Reserved.
Contact US | Privacy Policy | Terms of use
Page 5 of 6
Copyright © 2023 LinuxTeck. All Rights Reserved.
Material from our website cannot be republished ONLINE or OFFLINE without our permission.
Page 6 of 6

Contenu connexe

Similaire à User Management Command Cheat Sheet.pdf

Linux System Information Command Cheat Sheet.pdf
Linux System Information Command Cheat Sheet.pdfLinux System Information Command Cheat Sheet.pdf
Linux System Information Command Cheat Sheet.pdfLinuxTeck
 
Linux day 2.ppt
Linux day  2.pptLinux day  2.ppt
Linux day 2.pptKalkey
 
Important Linux Commands
Important Linux CommandsImportant Linux Commands
Important Linux CommandsArun Sharma
 
Linux basics part 1
Linux basics part 1Linux basics part 1
Linux basics part 1Lilesh Pathe
 
Linux Training For Beginners | Linux Administration Tutorial | Introduction T...
Linux Training For Beginners | Linux Administration Tutorial | Introduction T...Linux Training For Beginners | Linux Administration Tutorial | Introduction T...
Linux Training For Beginners | Linux Administration Tutorial | Introduction T...Edureka!
 
Need help in a aspect of Linux System administration I am r.pdf
Need help in a aspect of Linux System administration I am r.pdfNeed help in a aspect of Linux System administration I am r.pdf
Need help in a aspect of Linux System administration I am r.pdfABHISANJEET
 
1 CMPS 12M Data Structures Lab Lab Assignment 1 .docx
1 CMPS 12M Data Structures Lab Lab Assignment 1 .docx1 CMPS 12M Data Structures Lab Lab Assignment 1 .docx
1 CMPS 12M Data Structures Lab Lab Assignment 1 .docxtarifarmarie
 
Introduction to linux day-3
Introduction to linux day-3Introduction to linux day-3
Introduction to linux day-3Gourav Varma
 
Most frequently used unix commands for database administrator
Most frequently used unix commands for database administratorMost frequently used unix commands for database administrator
Most frequently used unix commands for database administratorDinesh jaisankar
 
Blug connections
Blug connectionsBlug connections
Blug connectionsWannes Rams
 
101 4.5 manage file permissions and ownership v3
101 4.5 manage file permissions and ownership v3101 4.5 manage file permissions and ownership v3
101 4.5 manage file permissions and ownership v3Acácio Oliveira
 
4.5 manage file permissions and ownership v3
4.5 manage file permissions and ownership v34.5 manage file permissions and ownership v3
4.5 manage file permissions and ownership v3Acácio Oliveira
 
User and group administration in Linux
User and group administration in LinuxUser and group administration in Linux
User and group administration in LinuxMohammed Yazdani
 
06 users groups_and_permissions
06 users groups_and_permissions06 users groups_and_permissions
06 users groups_and_permissionsShay Cohen
 

Similaire à User Management Command Cheat Sheet.pdf (20)

Linux System Information Command Cheat Sheet.pdf
Linux System Information Command Cheat Sheet.pdfLinux System Information Command Cheat Sheet.pdf
Linux System Information Command Cheat Sheet.pdf
 
Linux day 2.ppt
Linux day  2.pptLinux day  2.ppt
Linux day 2.ppt
 
Download It
Download ItDownload It
Download It
 
Important Linux Commands
Important Linux CommandsImportant Linux Commands
Important Linux Commands
 
Linux basics part 1
Linux basics part 1Linux basics part 1
Linux basics part 1
 
Linux Training For Beginners | Linux Administration Tutorial | Introduction T...
Linux Training For Beginners | Linux Administration Tutorial | Introduction T...Linux Training For Beginners | Linux Administration Tutorial | Introduction T...
Linux Training For Beginners | Linux Administration Tutorial | Introduction T...
 
Need help in a aspect of Linux System administration I am r.pdf
Need help in a aspect of Linux System administration I am r.pdfNeed help in a aspect of Linux System administration I am r.pdf
Need help in a aspect of Linux System administration I am r.pdf
 
1 CMPS 12M Data Structures Lab Lab Assignment 1 .docx
1 CMPS 12M Data Structures Lab Lab Assignment 1 .docx1 CMPS 12M Data Structures Lab Lab Assignment 1 .docx
1 CMPS 12M Data Structures Lab Lab Assignment 1 .docx
 
Introduction to linux day-3
Introduction to linux day-3Introduction to linux day-3
Introduction to linux day-3
 
Most frequently used unix commands for database administrator
Most frequently used unix commands for database administratorMost frequently used unix commands for database administrator
Most frequently used unix commands for database administrator
 
Blug connections
Blug connectionsBlug connections
Blug connections
 
101 4.5 manage file permissions and ownership v3
101 4.5 manage file permissions and ownership v3101 4.5 manage file permissions and ownership v3
101 4.5 manage file permissions and ownership v3
 
4.5 manage file permissions and ownership v3
4.5 manage file permissions and ownership v34.5 manage file permissions and ownership v3
4.5 manage file permissions and ownership v3
 
OS Unit IV.ppt
OS Unit IV.pptOS Unit IV.ppt
OS Unit IV.ppt
 
User and group administration in Linux
User and group administration in LinuxUser and group administration in Linux
User and group administration in Linux
 
06 users groups_and_permissions
06 users groups_and_permissions06 users groups_and_permissions
06 users groups_and_permissions
 
G Mac Chapter04
G Mac Chapter04G Mac Chapter04
G Mac Chapter04
 
Basic Unix
Basic UnixBasic Unix
Basic Unix
 
Unix Work
Unix WorkUnix Work
Unix Work
 
Linux lecture
Linux lectureLinux lecture
Linux lecture
 

Dernier

Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...PsychoTech Services
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024Janet Corral
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 

Dernier (20)

Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 

User Management Command Cheat Sheet.pdf

  • 1.  TOP MENU Apr 23, 2023  Facebook  Twitter  LinkedIn   fa-you JOIN TO OUR FACEBOOK GROUP   MAIN MENU Cheat Sheets Linux User Management Command Cheat Sheet Last updated on April 11th, 2023 - by John Gomez - Leave a Comment Linux user management commands create, modify, and delete user accounts and groups. Similarly, these commands are used to manage user account properties such as login shells, primary groups, and passwords. User management commands help system administrators control access to resources and manage user permissions on Linux systems to ensure security and accessibility. Command Description useradd By using this command, you can create a new user account on the system. usermod This command is used to modify an existing user account, such as changing the user's password or group membership. userdel This command is used to delete an existing user account from the system. passwd This command is used to change a user's password. groupadd This command is used to create a new group on the system. groupmod This command is used to modify an existing group, such as changing the group's name or membership. groupdel This command is used to delete an existing group from the system.  Page 1 of 6
  • 2. Command Description id This command is used to display information about a user or group, including their user ID and group membership. chown This command is used to change the owner of a 몭le or directory. chgrp This command is used to change the group ownership of a 몭le or directory. chmod This command is used to change the permissions of a 몭le or directory. su This command is used to switch to another user account or become a superuser. sudo This command is used to execute a command with elevated privileges. whoami This command is used to display the username of the current user. w This command is used to display information about logged-in users and their activity on the system. 몭nger [username] Displays detailed information about a user, including their login name, home directory, and shell. last Displays information about the last logged-in users on the system. who Displays information about currently logged-in users in the system. adduser [username] Create a new user account with interactive prompts to enter user details. deluser [username] Deletes a user account and their home directory from the system. newgrp [groupname] Change the user's primary group membership to a new session. usermod -aG [groupname] [username] Adds a user to an additional group. chsh -s [shellpath] [username] Change the user's login shell. chfn [username] Change the user's full name and other details in the system password 몭le. Page 2 of 6
  • 3. Command Description Comment * Leave a Reply Your email address will not be published. Required 몭elds are marked * visudo Edit the sudo con몭guration 몭le, which controls which users can execute commands with elevated privileges. About John Gomez John Britto Founder & Cheif-Editor @LinuxTeck. A Computer Geek and Linux Intellectual having more than 10+ years of experience in Linux and Open Source technologies. View all posts by John Gomez → RELATED POST Docker Management Command Cheat Sheet April 16,2023 Linux Database Management Command Cheat Sheet April 14,2023 Linux System Initialization Command Cheat Sheet April 14,2023 PREVIOUS ARTICLE Linux System Information Command Cheat Sheet NEXT ARTICLE Linux Network Command Cheat Sheet Page 3 of 6
  • 4. Comment * Name * Email * Website Save my name, email, and website in this browser for the next time I comment. POST COMMENT TRENDING Linux Package Management Command Cheat Sheet How to set up FTP server in Rocky Linux 8.4 How to secure FTP Server with SSL/TLS in Rocky Linux How to set up an SFTP server on Rocky Linux 8 How to set up MariaDB on Rocky Linux 8 How to Install and use phpMyAdmin on Rocky Linux How to Install Rocky Linux 9 {Step by Step} with Screenshots Page 4 of 6
  • 5. Linux Package Management Command Cheat Sheet Apr 07, 2023 How to set up FTP server in Rocky Linux 8.4 Nov 23, 2021 How to Install Ubuntu 22.04 LTS {Step by Step} with Screenshots Install LAMP Stack on Rocky Linux 9 {Step by Step} How to install Apache on Rocky Linux 9 First name or full name Email I want to receive a newsletters SUBSCRIBE Popular Comments Tags Copyright © 2023 LinuxTeck. All Rights Reserved. Contact US | Privacy Policy | Terms of use Page 5 of 6
  • 6. Copyright © 2023 LinuxTeck. All Rights Reserved. Material from our website cannot be republished ONLINE or OFFLINE without our permission. Page 6 of 6