1. Abstract If you need an md5sum for a directory, you can get the md5sum for the files and md5sum for that list. 2. Command find [Directory] -type f -exec md5sum {} \; | sort -k 2 | md5sum
Author: manager
Find files that do not contain a specific string
1. Abstract Find files that do not contain a specific string 2. Command grep -c “string_to_find” *
Change or Remove web page of XenServer
1. Intro If you want to change or delete the web page of XenServer 2. How to do? Change or Remove File cd /opt/xensource/www
Mount ownership
1. Abstract How to change ownership to root when trying to mount NAS disk to server (CentOS) but ownership is automatically set to nobody 2. How to use? vi /etc/idmapd.conf : Uncomment, change User/Group Nobody-User = root Nobody-Group = root
Install XenServer
1. Abstract Install XenServer on Desktop Computer XenServer 8.2 • Kernel version: Linux 4.19 • Xen hypervisor version: 4.13 • Control domain operating system version: CentOS 7.5 2. Download https://www.citrix.com/downloads/ ※ Login required 3. Install USB-stick use Rufus : https://rufus.ie/ 4. Install Computer
Clean unuse kernel
1. Intro If you have an old kernel that you are not using, you should delete it. Because it fill up the /boot capacity. 2. How to do? 2.1. check kernel # current kernel uname -a # list kernel sudo dpkg –list | grep linux-image 2.2. Delete old kernel sudo apt purge linux-image-[version] […]
qmail retry time
1. qmail retry time qmail-send delivery retry tims (remote) 2. Result Retry after 400 seconds retry after previous delay time + 800 seconds, … 1-hour : 3 times 4-hour : 6 times 12-hour : 10 times 24-hour : 14 times 3. Proof cat /var/log/maillog Q. How to identify if it is the same […]
modify telnetlib buffer
1. Intro If you want to change the socket buffer size of Telnetlib 2. How to do? sed -i “s/self.sock.recv(50)/self.sock.recv(250)/” /usr/lib/python3.6/telnetlib.py
Delete domain 1st section
1. Intro Delete domain 1st section 2. regular expression ^[a-zA-Z0-9_-]+ ^\.
Compare Directory
1. Intro If you want to compare all files in directory A and directory B 2. Command diff -ru dir_A dir_B