To create a user account in bash for Windows, follow the below steps:
- Open Bash application on your Windows: Go to Run, type bash
- Type the following command: # sudo adduser userName
you would see the below output on the console,
Example:Adding user `c2c20' ... Adding new group `c2c20' (1002) ... Adding new user `c2c20' (1002) with group `c2c20' ... Creating home directory `/home/c2c20' ... Copying files from `/etc/skel' ... New password:
- Set a New password
- You will be asked to RE-Enter the Password.
- You will be prompted to add,
- Full Name []
- Room Number []
- Work Phone []
- Home Phone []
- Other[]
- You will be prompted to validate the details: Is the information correct? [Y/n]
- You will be taken back to the # prompt.
How to login to new user created?
# su userName
More Posts related to Bash,
- How to use Autocomplete and Autosuggestion in Shell Commands
- Bash How to Save Output of a Command to a Variable
- How to know the current shell you are logged in?
- How to Echo Bash Command to a File
- Bash Command to Get Absolute Path for a File
- How to Split a String based on Delimiter in Bash Scripting
- Bash: Command Line Arguments to Bash Script Examples
- Bash Command to Download a File From URL
- How to check if a Command Exists using Bash Script
- Ways to Increment a counter variable in Bash Script
- Know Bash shell version command
- Bash command to Read, Output and Manipulate JSON File
- Bash Command to Base64 Decode a String
- Bash Command to Check Python Version
- Bash: Command to Find the Length of a String
- What is $$ in Bash Shell Script- Special Variable
- Bash - How to check if a Command Failed?
- List all Username and User ID using Bash Command
- Command to Sort File In Reverse Order [Unix/Linux/macOS]
- bash: netstat: command not found
- Bash Command To Go Back To Previous Directory
- [Fix] bash: script.sh: /bin/bash^M: bad interpreter: No such file or directory
- How to check your IP using bash for Windows?
- Bash Command To Check If File Exists
- Convert String from uppercase to lowercase in Bash
More Posts:
- Your Android SDK is missing, out of date or corrupted SDK Problem - Android-Studio
- Add Line Number before each line in Notepad++ using Column Editor - NotepadPlusPlus
- Fix - bash: man: command not found - Linux
- Install Visual Studio VS Code on Mac using Brew - MacOS
- How to check about details of Notepad++ text editor - NotepadPlusPlus
- MySQL Error :1007 SQLSTATE: HY000 (ER_DB_CREATE_EXISTS) Message: Can't create database '%s'; database exists - MySQL
- Unbound classpath container: JRE System Library [JavaSE-1.7] - Java
- Add comma or semicolon at end of each line Notepad++ - NotepadPlusPlus