shell脚本报错: bash: xxx: /bin/bash^M: bad interpreter: No such file or directory 1. 首先用vi命令打开文件 [root@localhost?test] vi?shell1.sh !/bin/bash echo $RANDO ...
分类:
系统相关 时间:
2020-01-29 14:32:09
阅读次数:
74
#include <stdio.h>int main (void){ int i, j, m, n, x; for (i = 1; i < 168 / 2 + 1; i++) { if (168 % i == 0) { j = 168 / i; if ( i > j && (i + j) % 2 = ...
分类:
其他好文 时间:
2020-01-29 14:14:41
阅读次数:
46
创建用户 useradd01.sh #!/bin/bash ############################### #useradd # #v1.0 by userf 2019.08.01 # ############################### read -p "Please i ...
分类:
系统相关 时间:
2020-01-29 12:51:45
阅读次数:
98
#include<iostream> #include<algorithm> #include<queue> #include<map> #include<cstring> #include<cstring> #include<cstdio> #include<math.h> using names ...
分类:
其他好文 时间:
2020-01-29 12:15:38
阅读次数:
71
studio 3T重置使用时间脚本 放到开机运行 win+r 输入 shell:startup ...
分类:
其他好文 时间:
2020-01-29 12:14:13
阅读次数:
286
一、打印命令 1、echo打印命令 a、打印环境变量 echo $Path b、打印Path命令目录 which,比如:which ls表示打印的是Path目录中第一定义的全局变量的目录中命令。 二、环境变量 环境变量的路径: 1、全局变量的地址,所有人使用:/etc/profile 2、仅限个人使 ...
分类:
系统相关 时间:
2020-01-29 12:06:10
阅读次数:
80
linux动态链接库的使用 文件结构 目录结构 编译动态库 进入 目录 编译源代码 进入 目录 这时编译会报错,提示找不到动态链接库add 那么可以手动通过 参数给出add动态链接库的路径 如果每次都需要指明路径未免太麻烦了,实际上gcc默认会有一个默认搜索路径,它会首先在该路径中进行搜索,该路径通 ...
分类:
系统相关 时间:
2020-01-29 10:57:52
阅读次数:
101
void fun(int i){if(i>0) fun(i/2);printf("%d\n",i);}void main(){fun(10);}问:程序输出结果?答案: 012510 ...
分类:
编程语言 时间:
2020-01-29 10:52:19
阅读次数:
64
1. 复制多份文件 将文件src复制3份,分布名为dest1, dest2, dest3 xargs 可以将管道或标准输入(stdin)数据转换成命令行参数,也能够从文件的输出中读取数据。 somecommand |xargs item command n num 后面加次数,表示命令在执行的时候一 ...
分类:
系统相关 时间:
2020-01-29 10:28:02
阅读次数:
77