# Linux basics ## User and group management ### Add user to group ```bash sudo usermod -a -G GROUP_NAME USER_NAME ``` - `-a` **append** add user to group, otherwise the user will be removed from any groups, not in the list. - `-G` comma-separated list of additional groups to assign the user to. ## Networking ### IP List networki adapters ```bash ip link ``` Enable/disable netwokr adapter ````{tabs} ```{code-tab} bash template sudo ip link set up/down ``` ```{code-tab} bash example sudo ip link set eth0 up ``` ```` Set IP address for adapter ````{tabs} ```{code-tab} bash template sudo ip addr add / dev ``` ```{code-tab} bash example sudo ip addr add 192.168.7.10/24 dev eth0 ``` ````