上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 38 下一页
摘要: gcc默认可能将程序编译为64为,若想强制让其将程序编译为32位,则:yum install glibc-devel.i686 gcc -m32 t.cfile a.out./a.out 阅读全文
posted @ 2018-12-22 20:43 xuejianbest 阅读(3908) 评论(0) 推荐(0) 编辑
摘要: 如果在执行./configure命令的时候(或其他情况下)报如下错误:(找不到c编译器)configure: error: no acceptable C compiler found in $PATH可能的原因是未安装gcc,用如下命令安装:Redhat ... 阅读全文
posted @ 2018-12-22 20:43 xuejianbest 阅读(222) 评论(0) 推荐(0) 编辑
摘要: shell中#开头的行即为注释行,只有单行注释。#--------------------------------------------# 这是一个注释#--------------------------------------------##### 用... 阅读全文
posted @ 2018-12-21 09:55 xuejianbest 阅读(398) 评论(0) 推荐(0) 编辑
摘要: t.sh:#!/bin/basharr=(1 2 B A) #定义数组变量,元素用括号括起来,元素之间用空格分隔echo ${arr[0]} #输出数组第0个元素echo ${arr[2]} #输出数组第2个元素echo ${arr[@]} #输出数组所有... 阅读全文
posted @ 2018-12-21 09:55 xuejianbest 阅读(103) 评论(0) 推荐(0) 编辑
摘要: 算数运算:#!/bin/basha=23b=10echo "23和10的+运算结果:`expr $a + $b`"echo "23和10的-运算结果:`expr $a - $b`"echo "23和10的*运算结果:`expr $a \* $b`"echo ... 阅读全文
posted @ 2018-12-21 09:55 xuejianbest 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 在终端中生成彩色输出原理:每种颜色都有对应的颜色码。前景色:重置=0,黑色=30,红色=31,绿色=32,黄色=33,蓝色=34,洋红=35,青色=36,白色=37;背景色:重置=0,黑色=40,红色=41,绿色=42,黄色=43,蓝色=44,洋红=45,青... 阅读全文
posted @ 2018-12-21 09:55 xuejianbest 阅读(296) 评论(0) 推荐(0) 编辑
摘要: 校验位算法:对前17位数字加权求和得到S1-17位数字的权数分别为: 7 9 10 5 8 4 2 1 6 3 7 9 10 5 8 4 2S 除以11求余数得到YY = mod(S, 11)用Y值查表得到校验码Y012345678910校验码10X9876... 阅读全文
posted @ 2018-12-21 09:55 xuejianbest 阅读(446) 评论(0) 推荐(0) 编辑
摘要: 常见的字节顺序有两种:Big Endian(High-byte first)和Litter Endian(Low-byte first),当然还有其他字节顺序,但不常见,例如Middle Endian。小端Little Endian:低字节存放在低地址,低位... 阅读全文
posted @ 2018-12-21 09:55 xuejianbest 阅读(215) 评论(0) 推荐(0) 编辑
摘要: github主页:https://github.com/sivel/speedtest-cliCommand line interface for testing internet bandwidth using speedtest.net安装:# 方法一:... 阅读全文
posted @ 2018-12-21 09:55 xuejianbest 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 脚本文件test.sh:#!/bin/bashprintf "%s\n" "hello world"可通过以下方式分别调用不同的shell执行脚本文件:/bin/sh test.sh/bin/bash test.sh另外也可以直接执行,此时脚本文件的第一行指... 阅读全文
posted @ 2018-12-21 09:55 xuejianbest 阅读(474) 评论(0) 推荐(0) 编辑
上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 38 下一页