09 2022 档案
摘要:# shell脚本实现死循环方法一:while :do somethingdone方法二:while [1]方法三:while true方法四:while ((1))方法五:while [[1]]方法六:while ["1"=="1"]方法七:while test "1"=="1" ########
阅读全文
摘要:tshark -i WORK -w vcu.pcap -b filesize:10 tcp port 3389filesize单位KBtshark -i WORK -w E:\ftp.pcap -b filesize:204800 -f "not port 3389 and tcp and ip h
阅读全文
摘要:Excel设置选中单元格颜色(1)全选-->条件格式-->新建规则-->使用公式确定要设置格式的单元格(2)输入公式“=(cell("row")=row())*(cell("col")=column())”,格式-->填充,选择颜色(3)VBA代码Private Sub Worksheet_Sele
阅读全文
摘要:Excel表格分sheet设置密码,开发者工具->Visual BasicPrivate Sub Worksheet_Activate()If Application.InputBox("请输入密码:") = 123456 ThenCells.EntireRow.Hidden = FalseElse
阅读全文
摘要:(1)ls -il获取节点的索引信息[root@localhost home]# ls -il总用量 0 3508078 drwxr-xr-x. 5 root root 137 11月 12 09:03 tmp4307597450 -rwsrwsrwt. 1 root root 0 1月 1 197
阅读全文
摘要:ls带详细时间ls -l --time-style='+%y-%m-%d %H:%M:%S'ls --full-time精确到ns
阅读全文
摘要:(1)在使用租期超过50%时刻处,DHCP Client会以单播形式向DHCP Server发送DHCPRequest报文来续租IP地址。如果DHCP Client成功收到DHCP Server发送的DHCP ACK报文,则按相应时间延长IP地址租期;如果没有收到DHCP Server发送的DHCP
阅读全文
摘要:(1)默认升序排列ps -auxw --sort %cpups -auxw --sort rss(2)降序排列ps -auxw --sort -%cpups -auxw --sort -rssps -auxw --sort -rss|head -5 //仅显示TOP5
阅读全文
摘要:默认情况下PC抓包会自动剥离VLAN TAG,对于有些场景下需要确认报文VLAN TAG是否正确、需要抓包确认。 (1)修改注册表HKEY_LOCAL_MACHINE-->SYSTEM-->CurrentControlSet-->Control-->Class-->{4D36E972-E325-11
阅读全文
摘要:以下为查看、设置cpu动态工作频率的命令:查看cpu0的当前工作频率:cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq 查看cpu0的最大工作频率:cat /sys/devices/system/cpu/cpu0/cpufreq/cp
阅读全文
摘要:[anaconda root@localhost ~]# whoroot ttyS0 Mar 26 09:19root pts/0 Mar 26 09:21 (10.0.31.80)root pts/1 Mar 26 10:45 (10.0.31.40)root pts/2 Mar 26 11:09
阅读全文
摘要:获取TCP各状态数量netstat -n | awk '/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}' ESTABLISHED 115TIME_WAIT 36
阅读全文
摘要:1、firewalld的基本使用 启动: systemctl start firewalld查看状态: systemctl status firewalld 停止: systemctl disable firewalld禁用: systemctl stop firewalld 2、systemctl
阅读全文
摘要:MAC地址16进制中的第一个字节第二个数一定是偶数
阅读全文
摘要:for /l %i in (0,1,7) do ping -n 5 -w 60 60.60.6%i.100
阅读全文
摘要:1、TCP参数 接收方缩放状态:netsh int tcp set global rss=enabledRFC 1323 时间戳:netsh int tcp set global timestamps=enabledECN功能使能:netsh int tcp set global ecncapabi
阅读全文
摘要:1、CentOS系列 1)yum install lm_sensors;2)sensors-detect3)sensors 2、Ubuntu系列 1)apt-get install lm-sensors2)sensors-detect3)service kmod start4)sensors 注意:
阅读全文
摘要:1、导出导入SQL文件 1.1 导出sql脚本 1.1.1 导出整个数据库 mysqldump -u 用户名 -p 数据库名 > 存放位置mysqldump -u root -p test > c:/a.sql 1.1.2 导出一个表 mysqldump -u 用户名-p 数据库名表名> 导出的文件
阅读全文
摘要:(1)方法1:localtime[root@localhost ~]# ll /etc/localtime lrwxrwxrwx. 1 root root 35 9月 3 2018 /etc/localtime -> ../usr/share/zoneinfo/Asia/Shanghai 注:由于是
阅读全文