К основному контенту

Сообщения

netstat

Windows netstat -a -o -n -b | findstr "10.0.0.25" kill $process (last column) or check in TaskManager -> Processes -> Sort by ID Linux netstat -4 -6 -a -n -p
Недавние сообщения

Failed to download metadata for repo ‘AppStream’ [CentOS]

  Fix Failed to download metadata for repo CentOS Linux 8 had reached the End Of Life (EOL)  on December 31st, 2021. It means that CentOS 8 will no longer receive development resources from the official CentOS project. After Dec 31st, 2021, if you need to update your CentOS, you need to change the mirrors to  vault.centos.org  where they will be archived permanently. Step 1:  Go to the  /etc/yum.repos.d/  directory. [root@autocontroller ~]# cd /etc/yum.repos.d/ Step 2:  Run the below commands [root@autocontroller ~]# sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* [root@autocontroller ~]# sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-* Step 3:  Now run the yum update [root@autocontroller ~]# yum update -y

CentOS get network information

  HowTo: Linux Show List Of Network Cards - nixCraft (cyberciti.biz) # lspci | egrep -i --color 'network|ethernet' # lspci | egrep -i --color 'network|ethernet|wireless|wi-fi' # lshw -class network # lshw -class network -short # ethtool enp0s31f6 # ifconfig -a # ip a #  hwinfo --network --short cat /proc/net/dev

REGEXP MATCH BASH

Find blocked messages  grep -E "Blocked SPAM" /var/log/maillog | grep -v grep | awk 'match($0,/<[0-9a-z.]{1,}@[][0-9a-z.]{1,}> -> <[0-9a-z.]{1,}@[][0-9a-z.]{1,}>/) {print substr($0,RSTART,RLENGTH)}' grep "SIP/gsm" checker.log.2022-09-* | awk 'match($0, /: load [0-9]*/) {print substr($0,RSTART,RLENGTH)}' | awk 'match($0, /[0-9]*$/) {print substr($0,RSTART,RLENGTH)}' | awk 'n