摘要:
# 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 阅读全文