/usr/bin/archivemail --quiet --delete --days 30 /home/{USER}/mail/inbox
Day: August 10, 2018
Enable and install iptables in centos 7
If you need to disable firewalld and use iptables in server use the following steps. First, stop and mask the firewalld service: systemctl stop firewalld systemctl mask firewalld Next, install the iptables-services package and enable the service to start at boot: yum install iptables-services systemctl enable iptables Then, saving the firewall rules can be done … Continue reading Enable and install iptables in centos 7
Cleaning the Linux Memory cache
To free pagecache:# echo 1 > /proc/sys/vm/drop_caches To free dentries and inodes:# echo 2 > /proc/sys/vm/drop_caches To free pagecache, dentries and inodes:# echo 3 > /proc/sys/vm/drop_caches
What is rpm justdb?
If you came across an RPM issue regarding any system or other critical rpms need to remove from server to resolve the upcp, yum update issues, you can use RPM "--justdb" option instead of removing the entire RPM. This "justdb" option only removes that particular RPM entry from RPMDB on server. +++++++ Eg: -bash-4.2# rpm … Continue reading What is rpm justdb?