瀏覽代碼

add env command

litblaky 11 年之前
父節點
當前提交
0aa39f0aa2
共有 1 個文件被更改,包括 19 次插入0 次删除
  1. 19 0
      pages/common/env.md

+ 19 - 0
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}}`