mysql utf8乱码

2019-05-08

mysql --default-character-set=utf8 -umysqluser -p  阅读全文...

awk split第一列

2019-05-08

1、awk 'BEGIN{OFS=" "} NR>1 {split($0,a,":");print a[1]}' 2.txt
2、排除最后一列
awk '{$NF="" ;print $0}'
3、如果需要分隔符可以这样:
awk 'OFS="," {$NF="" ;print $0}'  阅读全文...

openvpn客户端两个错误

2019-05-06

1、WARNING: No server certificate verification method has been enabled  阅读全文...

yum update出错urlgrabber-ext-down

2019-05-06

yum -y yudate出错File "/usr/libexec/urlgrabber-ext-down", line 28,File "/usr/bin/yum", line 30  阅读全文...

SearchSploit漏洞查找工具

2019-04-30

“searchsploit”是一个用于Exploit-DB的命令行搜索工具  阅读全文...

基于Debian的Linux发行版

2019-04-29

基于 Debian 的发行版则以其稳定性、安全性和可靠性而备受推崇。每个发行版都有其独特的特点,从适合桌面使用的到专业的渗透测试工具,再到专注于音频和视频制作的系统。MX Linux、Linux Mint、Ubuntu、Linux Mint LMDE、Deepin、AntiX、PureOS、Kali Linux、Parrot OS、Devuan、Knoppix 和 AV Linux。  阅读全文...

Avahi-daemon

2019-04-29

Avahi 是 zeroconf 协议的实现。它可以在没有 DNS 服务的局域网里发现基于 zeroconf 协议的设备和服务。它跟 mDNS 一样。除非你有兼容的设备或使用 zeroconf 协议的服务,否则应该关闭它。我把它关闭。  阅读全文...

strace解决sqlplus登陆缓慢

2019-04-28

strace -T -t -o /tmp/nohost sqlplus / as sysdba  阅读全文...

scrt访问linux,sqlplus查询中文显示乱码

2019-04-28

scrt访问linux时候,默认语言LANG=en_US.UTF-8。oracle查询默认语言NLS_LANG=AMERICAN_CHINA.ZHS16GBK,secureCRT设置默认语言UTF-8,查询结果为乱码。  阅读全文...

Linux配置openvpn客户端

2019-04-25

linux的通过openvpn客户端,可以通过vpn访问内网。  阅读全文...

systemctl实例

2019-04-24

systemctl 经常用到,在centos 7.x和debian 8.x都有此命令。  阅读全文...

python实例

2019-04-24

python print指定宽度。调用shell或系统命令  阅读全文...

sort实例

2019-04-24

1、按第5列排序
cat user.list |sort -t ',' -k 5 > user.txt
2、反向排序
cat a.txt|sort -r
3、ip排序
cat ip.txt |sort -t"." -k1,1n -k2,2n -k3,3n -k4,4n
sort -n -t. +0 -1 +1 -2 +2 -3 +3 -4 ip.txt
14.215.176.8
14.215.176.9
14.215.176.10
14.215.176.11
14.215.176.12  阅读全文...

Windows Update Blocker

2019-04-23

Windows 10 offers less UI control over the updating behavior of the operating system than previous versions of Windows , There is no option to turn off Windows Updates using the Control Panel or Settings app in Windows 10, it checks for updates automatically and install any updates they find,   阅读全文...

file命令

2019-04-22

file依赖文件
1、ldd /usr/bin/file
ldd /usr/bin/file
linux-vdso.so.1 => (0x00007ffde79f7000)
libmagic.so.1 => /usr/lib64/libmagic.so.1 (0x0000003fab200000)
libz.so.1 => /lib64/libz.so.1 (0x0000003faae00000)
libc.so.6 => /lib64/libc.so.6 (0x0000003fa9e00000)
/lib64/ld-linux-x86-64.so.2 (0x000055f17918f000)
2、ldd file.exe
cygwin1.dll => /usr/bin/cygwin1.dll (0x180040000)
cygmagic-1.dll => /usr/bin/cygmagic-1.dll (0x3ff9d0000)
cygz.dll => /usr/bin/cygz.dll (0x3ff3d0000)  阅读全文...