HostOnNet Blog

Category Archives: Linux Administration

List of open ports in command line

If a port is open, it means that there is an actively running program which uses the port number to communicate with other programs. If you want to check which ports are open on Linux system, you can use netstat


How to check whether the IP address is blacklisted in CSF

Login to your WHM control panel Click on “ConfigServer Security & Firewall” Then click on the “Search for IP” button to findout the details of IP block on the server. This “Search for IP” tool will findout the details of


How to check ddos attack on server

How to check number of active conection that are open to your server in server. If you are much above 500 you are probably having problems. You get over 100 you are having trouble with a syn attack. To Block


Linux Server Monitoring Commands

To check the recent mail logs use Check for spamming if anybody is using php script for sending mail through home If anyone is spamming from /tmp If mysql is causing load so you can check it using following commands.


Command to check which RAM using on your computer?

You can check the information by running following command: The result will look like: Another command also available to check this:  


How to Check if SMTP Port 25 is Blocked

You can run a simple test to see if your ISP is blocking port 25. Open terminal and type below command.( for windows: Start >> Run >> Type ‘cmd’) Replace domain.com with your domain name. If your ISP is blocking


How to Clear the Terminal History on Linux

Command history allows you to find and reuse previously typed commands. How to clear the terminal command line history: Login with the user account whose terminal history you plan to clear Open a terminal window and type history -c You


Exim mail queue commands

To view list of messages in the exim mail queue Delete all Forzen Mail From Queue To remove a message from the queue, enter: To remove all mails from exim mail server queue, run Get the content of an email


Apache Optimization

The default Apache settings that cPanel sets upon install are definitely something that can be improved on. With a few small tweaks, the efficiency with which Apache runs with can be greatly improved. Check Apache Mode prefork.c => Apache running


Linux mv command to move or rename directory

mv command is used to move/rename files or directories. mv command is different from cp command. mv command completely removes the file from the source and moves to the directory specified, where cp command just copies the content from one