MinUk.Dev
linux user command - minuk dev wiki

linux user command

created : Tue, 07 Apr 2020 20:35:41 +0900
modified : Sat, 27 Jun 2020 15:14:54 +0900
  • check username

    cat /etc/passwd | grep {username}

  • create user & select default shell

    useradd {username} -m -s /bin/bash

  • password

    echo {password} | passwd –stdin {username}

  • home directory

    mkhomedir_helper {username}