随笔分类 -  shell

摘要:/** * 由SshConfig配置获取一个Session * @param conf * @return */ public static Session createSession(SshConfig conf){ LOG.info("try connect to " + conf.getHostIp() + ",usern... 阅读全文
posted @ 2016-11-18 11:20 life_start 阅读(949) 评论(0) 推荐(0)
摘要:1、第一个例子 touch test.sh vim test.sh #!/bin/bash echo "hello world" chmod 755 test.sh ./test.sh 2、输出字符串 : echo "dskdjflsd" 3、变量 #!/bin/bashecho "hello wo 阅读全文
posted @ 2016-10-09 16:48 life_start 阅读(458) 评论(0) 推荐(0)
摘要:Shell 本身是一个用C语言编写的程序,它是用户使用Unix/Linux的桥 梁,用户的大部分工作都是通过Shell完成的。Shell既是一种命令语言,又是一种程序设计语言。作为命令语言,它交互式地解释和执行用户输入的命 令;作为程序设计语言,它定义了各种变量和参数,并提供了许多在高级语言中才具有 阅读全文
posted @ 2016-09-29 14:43 life_start 阅读(225) 评论(0) 推荐(0)