Add new user in linux with home directory and /bin/bash

Search for a command to run...

No comments yet. Be the first to comment.
CRA has been one of my favorite tool. It gave us superpower to spin up react app with out of the box support for eslint , postcss , testing library,Web vitals and many more.. Since CRA has been depreciated and now React team recommend using framework...

If you often use the Zsh shell, at some point, you've probably encountered the frustrating issue of a corrupt history file. This problem can happen suddenly and disrupt your workflow by causing errors when you try to view or search your command histo...
![Troubleshooting [zsh: Corrupt History File]: A Simple Guide for Windows, Linux, macOS](/_next/image?url=https%3A%2F%2Fcdn.hashnode.com%2Fres%2Fhashnode%2Fimage%2Fstock%2Funsplash%2FxbEVM6oJ1Fs%2Fupload%2F160b183e50d491e945ca5ecb02f01896.jpeg&w=3840&q=75)
Commit Message Formats <type>(<optional scope>): <description> empty separator line <optional body> empty separator line <optional footer> Inital Commit chore: init Types API relevant changes feat Commits, that adds or remove a new feature fix C...

Old way [don't use] $remoteport = bash.exe -c "ip -4 addr show eth0 | grep -oP '(?<=inet\s)\d+(\.\d+){3}'" $found = $remoteport -match '\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}'; if( $found ){ $remoteport = $matches[0]; } else{ echo "The Script Exited...

const shareData = { title: "au.mirza", url: "https://www.instagram.com/au.mirza" }; const btn = document.getElementById("share"); btn.addEventListener("click", shareHandler); function shareHandler() { if (navigator.share && navigator.canShare...

sudo useradd -s /bin/bash -m -c "Full Name" user
The command is composed of:
sudo: We need administrator privileges to allow a new user to access the computer.
useradd: The useradd command.
-s /bin/bash: The shell option. This sets the default shell for this new user.
-m: The make home directory option. This creates a directory in the “/home/” directory, with the same name as the new user account name.
-c “Full Name”: The full name of the new user. This is optional.
user: The name of the new user account. This must be unique. It cannot already be in use for another user.