Hyrule
Hyrule

Reputation: 645

What does this linux command do?

I was doing the google cloud app engine tutorial and i saw this command. (linux/git).

TUTORIALDIR=src/ewbproject-187620/php_gae_quickstart-2017-12-01-10-29

What does it do?

Upvotes: 0

Views: 56

Answers (2)

aeliton
aeliton

Reputation: 361

It defines a shell environment variable that will be available during the shell session to be used as arguments for shell commands and programs. For example:

$ VAR1='test'
$ echo $VAR1
test
$

It is possible to use a environment variables inside a program, but to do that you will need to:

  1. use a library that provides access to them as this one for php
  2. use export VAR1 after defining the environment variable

Upvotes: 0

choroba
choroba

Reputation: 241758

It assigns the value src/ewbproject-187620/php_gae_quickstart-2017-12-01-10-29 to the variable $TUTORIALDIR.

Upvotes: 2

Related Questions