From 0aa39f0aa2cacac6f76277d4150fb8374f641faa Mon Sep 17 00:00:00 2001 From: litblaky Date: Tue, 8 Apr 2014 22:47:38 +0800 Subject: [PATCH] add env command --- pages/common/env.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 pages/common/env.md diff --git a/pages/common/env.md b/pages/common/env.md new file mode 100644 index 000000000..e28e76197 --- /dev/null +++ b/pages/common/env.md @@ -0,0 +1,19 @@ +# env + +> Show the environment or run a program in a modified environment + +- Show the environment + +`env` + +- Clear the environment and run a program + +`env -i {{program}}` + +- Remove variable from the environment and run a program + +`env -u {{variable}} {{program}}` + +- Set a variable and run a program + +`env {{variable}}={{value}} {{program}}` \ No newline at end of file