Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

How to create or delete user in Linux

📅 2018-Jul-13 ⬩ ✍️ Ashwin Nanjappa ⬩ 📚 Archive

$ sudo useradd joe

The above command does not create a home directory for the new user.

$ sudo useradd -m joe
$ sudo userdel joe

The above command does not remove the files owned by the user.

$ sudo userdel -r joe

Tried with: Ubuntu 16.04