ubuntu server commands

1. Download

2. User/Permission handling

2.1 User/Group informations

# show all users
getent passwd
# show all groups (e.g. docker)
getent group
# see who is logged in
who

2.2 Add User/Group

sudo adduser [username]
# tell him to change pw
sudo chage -d 0 [username]
sudo groupadd docker # creates if group is not available
sudo usermod -a -G docker $USER

3. Mounting devices

sudo mount /dev/nvme1n1p1 /mnt/500GB