Skip to content

Edoardo Vignati 👨🏻‍💻

› Always looking for awesome things

Menu
  • Studies
  • Publications
  • Skills
  • Portfolio
  • Projects
  • Career
  • Blog
  • 🇮🇹 Servizi
Menu

Mini cheat sheet for Linux users setup

Posted on 04/04/202204/04/2022 by Edoardo

Here is a short list of commands on how to create a user in Linux and get started easily.

First of all login as root

Create a new user:

$ useradd <username>

Create a password for user

$ passwd <username>

Add user to sudo group:

$ usermod -aG sudo <username>

Create default user home folder:

$ mkhomedir_helper <username>

Edit default command line:

$ vi /etc/passwd

and replace /bin/sh with /bin/bash


Buy Me A Coffee


This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

© 2025 Edoardo Vignati 👨🏻‍💻 | Powered by Minimalist Blog WordPress Theme