Anything

Anything for developer enviroment

Set npm cache folder

npm config set cache /path/to/global/cache -g
npm config get cache -g

Set yarn cache folder

yarn config set cache-folder /path/to/cache
yarn config get cache-folder

Create linux user

sudo useradd -m -d /home/newuser -s /bin/bash newuser

Cấp quyền sudo (nếu cần)

sudo usermod -aG sudo newuser

Hoặc nếu muốn chạy sudo mà không cần nhập mật khẩu:

echo "newuser ALL=(ALL) NOPASSWD:ALL" | sudo tee /etc/sudoers.d/newuser

Last updated