How to clean /tmp directory automatically in Linux/cPanel using tmpwatch

The “tmpwatch ” command in linux is to removes files which haven’t been accessed for a period of time. The tmpwatch recursively ...
    directory 755 file 644 permission

    How to recursively change Directory & File permission to 755 & 644 respectively

    To change all the directories to 755 (drwxr-xr-x): find /directory_location -type d -exec chmod 755 {} \; To change all the files to ...

      Whitelist IP or IP range in/out using iptables

      #Flush existing rules iptables -F # Set up default DROP rule for eth0 (Assuming eth0 is the Ethernet Port) iptables -P INPUT DROP # ...
        change default ssh port 22 to something else

        How to change default SSH port 22 to something else

        Internet connected Linux servers are always vulnerable to exploitation by the hackers/intruders. One of their common attack is through ...
          All Linux command ssh terminal

          How to Clear bash / SSH / Terminal command history in Linux

          You might need to wipe off the command history that you’ve executed in your linux system for various reason. Normally when logged ...

            How to disable IPtables Firewall in Linux (Red hat/CentOS/Fedora Core)

            Disable / Turn off Linux Firewall (Red hat/CentOS/Fedora Core) Type the following two commands to save the IPtables first and then to ...

              How to know your server inode limit and usage

              Shared hosting accounts, Virtual Private server and Dedicated servers – all come with inode lmit. Any file on your Unix (or ...

                SSH commands to check Hard Drive usage information in Linux Server

                Login to your Linux server using SSH Client (ie, PuTTy) Once you are connected to your server: Use to following command to check Hard ...
                  Load More