首页 > 其他 > 详细

Command Line 2

时间:2016-11-02 07:50:45      阅读:236      评论:0      收藏:0      [点我收藏+]

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

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!