1 !/bin/bash 2 3 4 HOSTNAME="localhost" 5 PORT="3306" 6 USERNAME="root" 7 PASSWORD="1234" 8 DBNAME="mydatabase" 9 10 11 LOGIN_CMD="mysql -h${HOSTNAME} ...
分类:
数据库 时间:
2020-12-02 12:27:59
阅读次数:
12
切换盘符目录 cd /d d: # 切换到D盘 cd /d d:\Packages # 切换到Packages目录 cls # (clear screen)清除屏幕 ipconfig # 查看IP地址 calc # (calculator)计算器 mspaint # 画图 notepad # 记事本 ...
分类:
其他好文 时间:
2020-12-02 12:23:47
阅读次数:
6
shell是弱类型语言如何查看linux支持哪些shell:cat/etc/shells
分类:
系统相关 时间:
2020-12-02 11:57:06
阅读次数:
7
code macname@localhost Desktop % cat content fox jumps over the lazy dog. fox jumps over the lazy dog. fox jumps over the lazy dog. fox jumps over the ...
分类:
系统相关 时间:
2020-12-01 12:32:52
阅读次数:
24
1.打开shell终端,输入 sudo vi /etc/rc.local 2.在编辑器里面输入自己要启动的脚本 #!/bin/bash echo "run incar ai program..." cd /opt/robot nohup bash autorobot.sh & 2>/dev/null ...
分类:
系统相关 时间:
2020-12-01 12:15:17
阅读次数:
12
code macname@localhost Desktop % cat test.sh while read line;do echo $line; done < a.txt macname@localhost Desktop % macname@localhost Desktop % cat a ...
分类:
系统相关 时间:
2020-11-30 16:14:46
阅读次数:
16
code macname@localhost Desktop % echo `uname -a` Darwin localhost 19.6.0 Darwin Kernel Version 19.6.0: Thu Oct 29 22:56:45 PDT 2020; root:xnu-6153.141 ...
分类:
系统相关 时间:
2020-11-30 16:12:29
阅读次数:
12
计算顺序编号 # 计算顺序编号 # 可访问 esriurl.com/CalculatorExamples 获取更多计算器示例 rec=0 def SequentialNumber(): global rec pStart = 1 pInterval = 1 if (rec == 0): rec = ...
分类:
编程语言 时间:
2020-11-30 16:11:03
阅读次数:
8
位(bit)、字节(byte)、字符、编码之间的关系 1、位: 数据存储的最小单位。每个二进制数字0或者1就是1个位; 2、字节: 8个位构成一个字节;即:1 byte (字节)= 8 bit(位); 1 KB = 1024 B(字节); 1 MB = 1024 KB; (2^10 B) 1 GB ...
分类:
其他好文 时间:
2020-11-30 15:58:17
阅读次数:
8
在写shell命令之前,首先要知道为什么要使用Shell脚本。使用Shell脚本能够轻易处理文件和目录之类的对象,相对于其他编程语言,Shell脚本执行起来更快,而且他也是个UNIX系统之间通用的功能,下面就让我们看一下Shell脚本的一些简单的命令。 以下如果是命令用$表示,在输入的时候不需要加, ...
分类:
系统相关 时间:
2020-11-30 15:57:34
阅读次数:
12