- 博客(4)
- 收藏
- 关注
原创 top的使用技巧
1.top -d x 每隔x秒刷新一次2.top -p xxx,yyy 查看指定pid的进程信息3.p 按照cpu占用排序4.m 按照内存占用排序5.< > 翻页
2021-09-14 21:15:16
121
原创 shell命令笔记
1.head head -nxxx.txt 查看xxx.txt文档的前n行2.tail tail -n xxx.txt 查看xxx.txt文档的最后n行3.more more xxx.txt 查看xxx.txt文档,回车键换行,空格键翻页4.grep grep xxx xxx.txt 查看xxx.txt文档中包含xxx的字符串5.> 重定向 之前的内容会被删除吗6.gedit 记事本,图形化...
2021-08-28 22:37:32
59
原创 关于环境变量定义prompt实现$替换成用户+当前路径提示
set prompt = "// ${HOST}:$cwd % "alias cd 'cd \!* ;set prompt = "// ${HOST}:$cwd % "'
2021-08-23 17:12:52
169
原创 shell脚本中对于*通配符不识别的解决办法
1、网上最多的办法是在spawn中加入bash -c,如下:#!/usr/bin/expect -fset HOST"192.168.102.1"set USER"codefor"set PASS"codefor"set BOOKFILE"/home/codefor"#uploadspawn bash -c"scp *.zip $USER@$HOST:$BOOKFILE"expect {"*password*"{send"$PASS\r";}...
2021-08-12 16:03:30
3340
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人