Setting Environment Variable
-
Setting values to environment variables
1 2 3
~ ❯ PORT=3333 ~ ❯ export PORT ~ ❯ export EDITOR=nano
-
Examining values of environment variables
1
~ ❯ printenv PORT
-
Erasing environment variables
1 2
~ ❯ export PORT= ~ ❯ unset PORT
-
Reference: Environment Variables
Checking your Ubuntu Version
- Reference: Checking your Ubuntu Version
1 2 3 4 5 6
~ ❯ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 14.04.4 LTS Release: 14.04 Codename: trusty