- useradd mark -m -s /bin/bash -g users -c "my account"
- -m create home directory
- -s allowing to use shell/bash scripting
- -g - add into group
- -c - add comment
- sudo passwd mark
- to change the password
- sudo userdel mark - to remove the user
- sudo userdel -r tom - removes the user directory
- groups - the user currently connected to the group
- cat /etc/group - list all groups
- sudo groupadd python - add new group
- sudo groupdell cpp - delete group
- gpasswd -a mark python - add mark to python group
- gpasswd -d mark python - remove user from group
- su mark - to login
- su - mark - with new environment
- chmod u+rw, g=rw,o+r file.txt
- = and + performs same function
Recent Pastes