How to Change Username in AlmaLinux - YouTube Script
Categories:
less than a minute
Introduction (30 seconds)
Hello everyone. Welcome to my channel! Today, I will show you how to change the username in AlmaLinux.
Changing the Username
If you want to change the username of a user, you can use the usermod command followed by the -l option.
For example, We want to change the username of “john” to “jonathan”
Let’s check the existing users first.
cat /etc/passwd | grep john
This command will display the list of users on the system. If you see “john” in the list, it means the username has not been changed yet.
sudo usermod -l jonathan john
This command changes the username from “john” to “jonathan”. Let’s check if the username has been changed successfully.
id jonathan
This command will display the user ID and group ID of the user “jonathan”. If you see the user ID and group ID, it means the username has been changed successfully.
Conclusion (30 seconds)
If you found this tutorial helpful, please like and subscribe for more Linux administration videos. Drop any questions in the comments below!
Thanks for watching, and happy Linux administrating!
Optional Thumbnail Text Ideas
- How to Change Username in AlmaLinux
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.