Useful linux commands

create sudo enabled user

# add a new user to the system
sudo adduser <username>
# adding the user to the sudo group
sudo usermod -aG sudo <username>
# testing sudo access
sudo su - <username>

run sudo command without a password

sudo visudo
# change under line to next line
# %sudo   ALL=(ALL:ALL) ALL
%sudo   ALL=(ALL:ALL) NOPASSWD:ALL

install miniconda

wget https://repo.anaconda.com/miniconda/Miniconda3-py38_4.12.0-Linux-x86_64.sh
bash Miniconda3-py38_4.12.0-Linux-x86_64.sh

init miniconda

# cd to conda install path ./bin
./conda init zsh
# restart terminator

conda create --name <env_name> --clone base
nano ~/.zshrc
# add under line in the bottom of ~/.zshrc
conda activate <env_name>