码迷,mamicode.com
首页 >  
搜索关键字:bash 端口检测    ( 15273个结果
Hive安装和基础使用
1、安装JDK并设置环境变量 2、上传安装包 3、解压 4、设置环境变量# vi ~/.bash_profile或vi /etc/profile5、进入hive shell# hive shell或# hive 6、常见操作 查看数据库清单hive> show databses; 查看表清单hive...
分类:其他好文   时间:2014-07-12 00:27:32    阅读次数:347
安装HBase
1、安装JDK并设置环境变量 2、上传Hbase安装包hbase-0.94.0.tar.gz3、解压# tar -xzvf hbase-0.94.0.tar.gz4、设置环境变量# vi ~/.bash_profile或vi /etc/profileexport HBASE_HOME=/home/h...
分类:其他好文   时间:2014-07-12 00:24:15    阅读次数:235
bash arithmatic
Arithmetic in bash is done with $ and double parentheses:echo "$(($num1+$num2))"Or $ and square brackets:echo "$[$num1+$num2]"You can assign from that...
分类:其他好文   时间:2014-07-11 22:33:14    阅读次数:235
[Android] 为Android安装BusyBox —— 完整的bash shell(收藏用)
大家是否有过这样的经历,在命令行里输入adb shell,然后使用命令操作你的手机或模拟器,但是那些命令都是常见Linux命令的阉割缩水版,用起来很不爽。是否想过在Android上使用较完整的shell呢?用BusyBox吧。不论使用adb连接设备使用命令行还是在手机上直接用terminal emu...
分类:移动开发   时间:2014-07-11 20:53:02    阅读次数:284
shell脚本解析6----case语句
BASH中的case结构,可以用于进行多项分支。case "$var" incondition1) ;;condition2) ;;*) default statments;;esac例如:#!/bin/bashecho "Hit a key, then hit return"read...
分类:其他好文   时间:2014-07-11 10:44:58    阅读次数:230
Linux Shell编程之二选择结构
Shell编程学习之二一、bash的条件测试测试方法或者说测试书写:testEXPR[EXPR][[EXPR]]例如:测试变量User_Name的之是否为roottest$User_Name="root"[$User_Name=="root"][[$User_Name=="root"]根据比较时操作数的类型,测试类型分为:测试类型运算符运算符所代表的意义示例整..
分类:系统相关   时间:2014-07-10 18:36:31    阅读次数:303
Mac OS X 上Lua的安装方法
先在Mac OS的终端查询下本机是否已安装LuaLast login: Thu Jul 10 07:54:48 on ttys000keshans-Mac-mini:~ keshan$ lua-bash: lua: command not found 2. 如果没有(如上)的话去Lua的官方网站下....
分类:其他好文   时间:2014-07-10 15:50:08    阅读次数:173
shell编程基础
Shell编程基础本文作者:Leal授权许可:创作共享协议GNU自由文档许可证编辑人员:FireHare, Dbzhang800我们可以使用任意一种文字编辑器,比如gedit、kedit、emacs、vi等来编写shell脚本,它必须以如下行开始(必须放在文件的第一行): #!/bin/bash.....
分类:其他好文   时间:2014-07-09 19:09:31    阅读次数:340
管道命令
当我们需要 bash 执行命令后的数据进行加工时就可以用到了界定符号: |注:管道命令接仅会接收正确数据选取命令: cut 切割 -d 以什么分割成域 -f 获取指定的域和不包含分隔符的行 num或者 num,num -c 获取某列的值num / num- eg: man cut | cut ...
分类:其他好文   时间:2014-07-09 14:31:05    阅读次数:202
Linux一次性修改电脑的文件的为读写格式
第一步:编辑一下文本,大家可以对脚本按照自己的要求更改:#!/bin/bash#chmod alltextfiletoreadandwrite;find ~-name"*.doc*"-execchmod644-R{}\;find ~-name"*.xls*"-execchmod644-R{}\;find ~-name"*.ppt*"-execchmod644-R{}\;find ~-name"*.pdf"-execchmod644-R{}\;find ~-..
分类:系统相关   时间:2014-07-09 08:00:13    阅读次数:259
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!