会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
5
6
7
8
9
10
11
12
13
下一页
2022年8月2日
配置文件去掉注释行和空白行
摘要: grep -Ev '^#|^$' aa.conf grep -Ev '^(#|$)' aa.conf
阅读全文
posted @ 2022-08-02 14:03 shenshu
阅读(19)
评论(0)
推荐(0)
2022年8月1日
nc 传输文件
摘要: 安装nc yum install nc 服务端开启9999 nc -l 9999 < test.txt 下载文件 nc 127.0.0.1 9999 >test.txt ###验证是否传输完毕 #如果不是连接状态,则已经传输完毕 netstat -netp |grep 9999
阅读全文
posted @ 2022-08-01 21:30 shenshu
阅读(96)
评论(0)
推荐(0)
2022年7月31日
xargs
摘要: .txt 改为.bak , -i 对应 {} [root@lsoiodmuov tmp]# touch {1..10}.txt [root@lsoiodmuov tmp]# ll total 16 -rw-r--r-- 1 root root 0 Jul 31 07:54 10.txt -rw-r-
阅读全文
posted @ 2022-07-31 07:57 shenshu
阅读(59)
评论(0)
推荐(0)
2022年7月19日
Python 脚本如何设置试用期
摘要: https://mp.weixin.qq.com/s/-TBM2PUFwsZJFC0egS17IQ
阅读全文
posted @ 2022-07-19 08:58 shenshu
阅读(168)
评论(0)
推荐(0)
2022年7月16日
根据端口查询进程号
摘要: 一、linux根据端口查询进程、服务1、lsof -i:22 (结果包含已连接和监听的状态)2、netstat -nltp|grep 22 假如 pid=25753 3、ps -ef |grep 25753 二、Windows根据端口查询进程netstat -ano|find "LISTENING"
阅读全文
posted @ 2022-07-16 11:48 shenshu
阅读(6683)
评论(0)
推荐(0)
2022年7月12日
tar解压缩
摘要: 压缩文件到指定目录tar -czvf /tmp/11.tar.gz /etc 解压文件到指定目录tar -xzvf 11.tar.gz -C /tmp/123
阅读全文
posted @ 2022-07-12 11:03 shenshu
阅读(61)
评论(0)
推荐(0)
2022年7月10日
Linux 扩逻辑卷 或 disk
摘要: 一、新建逻辑卷及扩容逻辑卷 https://www.linuxprobe.com/basic-learning-07.html#721 二、扩容逻辑卷(不是新增一块硬盘,是在原来硬盘上扩容) #假设/dev/sdb 为10GB pvcreate /dev/sdb vgcreate storage /
阅读全文
posted @ 2022-07-10 15:53 shenshu
阅读(175)
评论(0)
推荐(0)
vsftpd
摘要: 软件官网:http://vsftpd.beasts.org/ 控制用户是否允许切换到上级目录在默认配置下,本地用户登入FTP后可以使用cd命令切换到其他目录,这样会对系统带来安全隐患。可以通过以下三条配置文件来控制用户切换目录。 1、chroot_list_enable=YES/NO(NO)设置是否
阅读全文
posted @ 2022-07-10 13:24 shenshu
阅读(320)
评论(0)
推荐(0)
2022年7月1日
域环境客户端设定时间同步源为域控
摘要: 1、查询时间同步主机 w32tm /query /source 2、重新设定时间同步源 net stop w32time w32tm /unregister w32tm /register net start w32time 3、其他命令 w32tm /resync w32tm /query /st
阅读全文
posted @ 2022-07-01 15:16 shenshu
阅读(644)
评论(0)
推荐(0)
2022年6月27日
python记录日志
摘要: python日志 import logging logging.basicConfig(level=logging.DEBUG,format=' %(asctime)s - %(levelname)s - %(message)s') logging.debug('this is debug info
阅读全文
posted @ 2022-06-27 20:01 shenshu
阅读(28)
评论(0)
推荐(0)
上一页
1
···
5
6
7
8
9
10
11
12
13
下一页
公告