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 start or open a new bourne-again shell (bash) session on Windows using Command Line CMD
- How to create new user account in Windows bash
- Bash Hello World! Script Tutorial
- How to Compare Strings in Bash
- How to see Created Accessed Modified and Changed dates of a file using bash terminal command
- Command to Sort File In Reverse Order [Unix/Linux/macOS]
- Bash command to wait for seconds
- [fix] bash: ssh: command not found
- bash: netstat: command not found
- Know Bash shell version command
- List all Username and User ID using Bash Command
- How to use Autocomplete and Autosuggestion in Shell Commands
- How to know the current shell you are logged in?
- [Fix] bash: script.sh: /bin/bash^M: bad interpreter: No such file or directory
- 'pwd' is not recognized as an internal or external command, operable program or batch file. [Windows]
- How to Kill a port using bash terminal command?
- How to fix bash ping command not found error
- Install Bash Completion on macOS
- bash get year 2021 calendar
- How to check your IP using bash for Windows?
- Bash For Loop Example
- Fix bash: script.sh: Permission denied Error
More Posts:
- Maven : java.lang.ClassNotFoundException: Xmx512m - Android
- How to insert image into Google Sheets cell - Google
- Cannot create new Microsoft Team using PowerShell, even as Admin - Teams
- How to initiate a photo request on iPhone from Mac Monterey - iOS
- How to Split a String in Python? - Python
- JSON Text to JavaScript Object using eval() Example: JSON Tutorial - Json-Tutorial
- How to empty trash in Android Device - Android
- List of Code Snippets/Templates to Eclipse IDE - Eclipse