Skip to content

Linux Study Notes - User Operations

Basic Operations

Adding a User

useradd -m username

Setting Password

passwd username

Deleting a User

userdel -r username

Deleting User's Directory

rm -rf username

Switching to Another User

su username

References and Acknowledgments

[to_be_replaced[1]] [to_be_replaced[2]]

This post is translated using ChatGPT, please feedback if any omissions.