码迷,mamicode.com
首页 > 其他好文 > 详细

Command Line 2

时间:2016-11-02 07:53:36      阅读:154      评论:0      收藏:0      [点我收藏+]

标签:lang   use   foo   port   long   exp   txt   style   comm   

1. Assign a string to a variable is the same as other language by using "=".
2. Use $ sign to access a variable.

  echo $FOOD  

3. Use export to create a environmental variable.

4. type python to enter the python shell. Use exit() to exit.

5. use $PATH to enter variable PATH.

6. Flags like the arguments of fucntion. us - to use flags. 

  ls -al #shows flag a and flag l

7. Longer flags like ingore need to use two dashes.

  ls --ignore=test.txt # we won‘t show the file named test.txt 

 

Command Line 2

标签:lang   use   foo   port   long   exp   txt   style   comm   

原文地址:http://www.cnblogs.com/kingoscar/p/6021601.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!