Linux Command: chown

This is a guide I’m mainly written a personal how-to guide, but I hope it can help others. System Ubuntu Server Version 16.04 Official manual Page chown This is a fairly generic Linux-based command so it work across different Ubuntu editions and versions. To change owership of single or multiple file/directory: chown -R openhab:openhab /opt/containers/openhab/ Variables: -R recursively change ownership […]

Linux Command: mkdir

This is a guide I’m mainly written a personal how-to guide, but I hope it can help others. System Ubuntu Server Version 16.04 Official manual Page mkdir This is a fairly generic Linux-based command so it work across different Ubuntu editions and versions. To create directories: mkdir -p /opt/containers/openhab/{conf, userdata, addons} Variables: -p create parent directory as needed {dir1, dir2} […]

Linux command: usermod

This is a guide I’m mainly written a personal how-to guide, but I hope it can help others. System Ubuntu Server Version 16.04 Official manual Page usermod This is a fairly generic Linux-based command so it work across different Ubuntu editions and versions. To add an existing account called ‘account1’ into the ‘group1’ group: sudo usermod -a -G group1 account1 […]

Linux command: useradd

This is a guide I’m mainly written a personal how-to guide, but I hope it can help others. System Ubuntu Server Version 16.04 Official manual Page useradd This is a fairly generic Linux-based command so it work across different Ubuntu editions and versions. To create a new non-root system user called ‘account1’ with no home directory: sudo useradd -r -s […]