跳转到内容

SRE笔记

  • 密码
    • 短链
  • 服务器
  • 关于

grep标签存档订阅

list accounts of /etc/passwd

#统计当前 Linux 系统中可以登录计算机的账户有多少个 grep "bash$&quo… 继续阅读 list accounts of /etc/passwd

  • 发表于: 2022-10-07 2022-10-07
  • 作者: nicaier
  • 分类: SRE
  • 标签: bash, grep, https
  • 发表评论: list accounts of /etc/passwd

show all open ports and usage

# 显示本机 Linux 系统上所有开放的端口列表 ss -nutlp | awk '{p… 继续阅读 show all open ports and usage

  • 发表于: 2022-10-05 2022-10-05
  • 作者: nicaier
  • 分类: SRE
  • 标签: awk, bash, grep, https
  • 发表评论: show all open ports and usage

get RX/TX pack of eth0

echo 'eth0 网卡发送的数据包流量 ' ifconfig eth0 | … 继续阅读 get RX/TX pack of eth0

  • 发表于: 2022-10-05 2022-10-05
  • 作者: nicaier
  • 分类: SRE
  • 标签: awk, bash, grep, https
  • 发表评论: get RX/TX pack of eth0

get cpu cache line

getconf -a | grep CACHE

  • 发表于: 2022-09-13 2022-09-13
  • 作者: JerryMouse, JerryMouse
  • 分类: SRE
  • 标签: bash, cache, cpu, grep
  • 发表评论: get cpu cache line

clamav scan dir content

#bin/bash . /etc/profile #set mail message title_m… 继续阅读 clamav scan dir content

  • 发表于: 2022-08-22 2022-08-22
  • 作者: shxiefc
  • 分类: SRE
  • 标签: awk, bash, grep
  • 发表评论: clamav scan dir content

clean harbor via shell

shell清理harbor镜像: #!/bin/bash #需要先安装jq命令,如 yum inst… 继续阅读 clean harbor via shell

  • 发表于: 2022-08-21 2022-08-21
  • 作者: shxiefc
  • 分类: SRE
  • 标签: awk, curl, grep, harbor, https, json, shell, tag
  • 发表评论: clean harbor via shell

python get linux pid

import subprocess import commands import logging d… 继续阅读 python get linux pid

  • 发表于: 2022-08-15 2022-08-15
  • 作者: aiops
  • 分类: SRE
  • 标签: grep, Linux, python
  • 发表评论: python get linux pid

linux查看默认ip地址

ip route show |grep default |awk '{print $9}&… 继续阅读 linux查看默认ip地址

  • 发表于: 2022-08-15 2022-08-15
  • 作者: aiops
  • 分类: SRE
  • 标签: awk, bash, grep, Linux
  • 发表评论: linux查看默认ip地址

go build查看初始化过程

go build –ldflags=–dumpdep main.go 2>&1 |… 继续阅读 go build查看初始化过程

  • 发表于: 2022-08-11 2022-08-11
  • 作者: aiops
  • 分类: SRE
  • 标签: bash, grep, https
  • 发表评论: go build查看初始化过程

找出两个txt中不同的行

comm -3 <(sort a.txt) <(sort b.txt) sort a.t… 继续阅读 找出两个txt中不同的行

  • 发表于: 2022-08-11 2022-08-11
  • 作者: aiops
  • 分类: SRE
  • 标签: awk, bash, grep, sed
  • 发表评论: 找出两个txt中不同的行

docker get container cgroup

docker inspect containerName11111111 | grep -i pid… 继续阅读 docker get container cgroup

  • 发表于: 2022-08-09 2022-08-09
  • 作者: aiops
  • 分类: SRE
  • 标签: bash, cgroup, Docker, grep
  • 发表评论: docker get container cgroup

ls删除文件 保留最新的文件个数

#!/bin/bash #保留最新的文件个数 num=3 filenumb=$(ls -ltr /d… 继续阅读 ls删除文件 保留最新的文件个数

  • 发表于: 2022-08-07 2022-08-07
  • 作者: guo, jr
  • 分类: SRE
  • 标签: bash, gitea, grep
  • 发表评论: ls删除文件 保留最新的文件个数

get token from kubernetes secret

kubectl -n kube-system describe secret $(kubectl -… 继续阅读 get token from kubernetes secret

  • 发表于: 2022-08-04 2022-08-04
  • 作者: guo, jr
  • 分类: SRE
  • 标签: awk, bash, grep, kubernetes
  • 发表评论: get token from kubernetes secret

kubernetes kubectl批量删除Evicted pod

kubectl get pods -n test |grep Evicted | awk ‘{pri… 继续阅读 kubernetes kubectl批量删除Evicted pod

  • 发表于: 2022-07-13 2022-07-13
  • 作者: erer, er
  • 分类: SRE
  • 标签: awk, bash, grep, kubernetes
  • 发表评论: kubernetes kubectl批量删除Evicted pod

shell if [ “x{val}” == “x” ]

ping=`ping -c 10 -W 1 www.baidu.com` rtt=`echo &qu… 继续阅读 shell if [ “x{val}” == “x” ]

  • 发表于: 2022-07-12 2022-07-12
  • 作者: erer, er
  • 分类: SRE
  • 标签: bash, grep, shell
  • 发表评论: shell if [ “x{val}” == “x” ]

蜜獾超存 6sata 主板信息

ash-4.3# dmidecode | grep -A16 "System Inform… 继续阅读 蜜獾超存 6sata 主板信息

  • 发表于: 2022-07-07 2022-07-07
  • 作者: erer, er
  • 分类: SRE
  • 标签: bash, grep
  • 发表评论: 蜜獾超存 6sata 主板信息

mysqldump skip some tables

#!/bin/sh for j in `mysql -uroot -e "USE spse… 继续阅读 mysqldump skip some tables

  • 发表于: 2022-05-17 2022-05-17
  • 作者: qqlv
  • 分类: SRE
  • 标签: bash, grep, MySQL, sql
  • 发表评论: mysqldump skip some tables

lsof查看被删除的文件

lsof / |grep -i deleted

  • 发表于: 2022-05-12 2022-05-12
  • 作者: qqlv
  • 分类: SRE
  • 标签: bash, grep
  • 发表评论: lsof查看被删除的文件

linux ssh 超时时间

if ! grep “TMOUT=600” /etc/profile &>/dev/n… 继续阅读 linux ssh 超时时间

  • 发表于: 2022-02-15 2022-02-15
  • 作者: stnds
  • 分类: SRE, 开发
  • 标签: bash, grep, https, Linux, ssh
  • 发表评论: linux ssh 超时时间

iptables自动屏蔽nginx攻击 IP

#!/bin/bash DATE=$(date +%d/%b/%Y:%H:%M) LOG_FILE=… 继续阅读 iptables自动屏蔽nginx攻击 IP

  • 发表于: 2022-02-13 2022-02-13
  • 作者: stnds
  • 分类: SRE
  • 标签: awk, bash, grep, https, iptables, nginx
  • 发表评论: iptables自动屏蔽nginx攻击 IP

分页

页码: 1 页码: 2 页码: 3 页码: 4 页码: 5 页码: 6 下一页

搜索

搜索:

近期评论

  • test发表在《gin不转义html标签》
  • 路过发表在《msg=”getting status of runtime: rpc error: code = Unimplemented desc = unknown service runtime.v1alpha2.RuntimeService”》
  • 禁止chrome浏览器http自动转成https – SRE笔记发表在《nginx安全配置 XSS攻击 Header头设置》
  • springboot lifecycle timeout-per-shutdown-phase优雅退出 – SRE笔记发表在《terminationGracePeriodSeconds优雅终止pod时间》
  • kubernetes Deployment快速部署rocketmq 4.9.2 dledger集群 3-broker – SRE笔记发表在《kubernetes Deployment快速部署rocketmq 4.9.2 dledger集群 1-镜像》

标签

aws (15) azure (12) Blockchain (28) centos (28) Docker (105) elasticsearch (26) eth (34) fil (39) go (129) golang (120) Grafana (13) hpc (15) http (299) ingress (14) java (75) jenkins (13) JVM (20) kubernetes (309) Linux (439) lotus (30) mongoDB (41) MySQL (184) nginx (112) Oracle (13) php (25) python (148) redis (34) s3 (75) shell (20) springboot (32) tomcat (15) ubuntu (31) vue (18) windows (42) wordpress (14) zabbix (37) zookeeper (13) 夏小胖 (31) 安全 (55) 工具 (451) 折腾 (24) 推荐 (15) 硬件 (61) 网络 (246) 资源 (49)

归档

  • 2022年11月
  • 2022年10月
  • 2022年9月
  • 2022年8月
  • 2022年7月
  • 2022年6月
  • 2022年5月
  • 2022年4月
  • 2022年3月
  • 2022年2月
  • 2022年1月
  • 2021年12月
  • 2021年11月
  • 2021年10月
  • 2021年9月
  • 2021年8月
  • 2021年7月
  • 2021年6月
  • 2021年5月
  • 2021年4月
  • 2021年3月
  • 2021年2月
  • 2021年1月
  • 2020年12月
  • 2020年11月
  • 2020年10月
  • 2020年9月
  • 2020年8月
  • 2020年7月
  • 2020年6月
  • 2020年5月
  • 2020年4月
  • 2020年3月
  • 2020年2月
  • 2020年1月
  • 2019年12月
  • 2019年11月
  • 2019年10月
  • 2019年9月
  • 2019年8月
  • 2019年7月
  • 2019年6月
  • 2019年5月
  • 2019年4月
  • 2019年3月
  • 2019年2月
  • 2019年1月
  • 2018年12月
  • 2018年11月
  • 2018年10月
  • 2018年9月
  • 2018年8月
  • 2018年7月
  • 2018年6月
  • 2018年5月
  • 2018年4月
  • 2018年3月
  • 2018年2月
  • 2018年1月
  • 2017年12月
  • 2017年11月
  • 2017年10月
  • 2017年8月
  • 2017年7月
  • 2017年6月
  • 2017年5月
  • 2017年4月
  • 2017年3月
  • 2017年2月
  • 2017年1月
  • 2016年12月
  • 2016年11月
  • 2016年10月
  • 2016年9月
  • 2016年8月
  • 2016年7月
  • 2016年6月
  • 2016年5月
  • 2016年4月
  • 2016年3月
  • 2016年2月
  • 2016年1月
  • 2015年12月
  • 2015年10月
  • 2015年9月
  • 2015年8月
  • 2015年7月
  • 2015年6月
  • 2015年5月
  • 2015年4月
  • 2015年3月
  • 2015年2月
  • 2015年1月
  • 2014年12月
  • 2014年11月
  • 2014年10月
  • 2014年9月
  • 2014年8月
  • 2014年7月
  • 2014年6月
  • 2014年5月
  • 2014年2月