CSF commands for Linux servers

Expertise level: Medium iptables is the standard Linux firewall. It is extremely powerful and customizable, but can also be incredibly complex to manage as a result. For this reason, iWeb recommends ConfigServer Security & Firewall (CSF) to manage your iptables configuration. CSF is a simplified interface that makes it easy to add or remove IP addresses from your firewall. This article will discuss managing CSF and iptables from the command line. If you are running WHM/cPanel, please consult the Knowledge Base article specifically for WHM/cPanel. If you wish to manage…

GET more here

Monitor Linux Systems Performance with iostat command

iostat command is used to monitor CPU utilization and I/O (input /output) statistics of all the disks and file systems. nfsiostat command is used to monitor i/o statistics of network file system(NFS). iostat command monitor the I/O (Input/Output) devices loading by means of observing the time, devices are active with respect to their average transfer rates. This command is especially helpful for generating reports that we can use to optimize the system’s input & output load. iostat command generally generates two reports: CPU utilization report All disks i/o statistics report…

GET more here

Commands for Linux Network Traffic Monitoring

Monitoring is one of the main task that anyone SystemAdmin or even a normal user should know about to get the best out of their systems/servers & avoid any issues. Bundles for a portion of the directions referenced here are accessible on EPEL store. The direction to introduce EPEL repo on your framework is referenced underneath. 1- Iftop command Iftop command provides real time monitoring of network bandwidth. It helps us measure the total data moving in & out of the individual socket connections i.e. it captures packets moving in…

GET more here

Enhance the php version 5.4 to 7.0

The default version of PHP available on Server running CentOS 7 is version 5.4. You will need to perform the upgrade by hand, since PHP 7 is not available in the standard CentOS 7 yum repository, because it is not considered stable. This is a significant upgrade, with potential for causing serious conflicts with any web software you may be running. We strongly recommend that you create a snapshot of your server before you proceed. This will allow you to roll back any changes if you encounter a problem with…

GET more here

Operate grep command for searching in a file

In the first example, I will search for the user “root the Linux passwd file. To search the /etc/passwd file for the user “root”, you need to enter the following command: Given below is the sample Output: root:x:0:0:root:/root:/bin/bash Using grep to search only for words When you are searching for abc, grep will match all sorts of things, viz., kbcabc, abc123, aarfbc35 and lots more combinations without obeying word boundaries. You can compel the grep command to select only those lines that contain matches to form whole words (those that…

GET more here

How To View Logs on Centos7

View and Configure Linux Logs on Centos7 Linux and the applications that run on it can generate all different types of messages, which are recorded in various log files. Linux uses a set of configuration files, directories, programs, commands and daemons to create, store and recycle these log messages. Knowing where the system keeps its log files and how to make use of related commands can therefore help save valuable time during troubleshooting. Default Log File Location The default location for log files in Linux is /var/log. You can view…

GET more here

How to check updates in CentOS with yum command

How to check updates in CentOS with yum command In this tutorial we are going to learn how to check for package updates in CentOS Linux using the yum check-update command. The yum check-update command use to search for the software updates in CentOS 7. To check updates on CentOS 7, execute yum check-update on the CentOS Terminal. # yum check-update This will list all available updates on your CentOS Linux System. We can specify the package name to check updates on a specific package. # yum check-update <package-name> If…

GET more here

How to establish Server Setup with CentOS 7

Establish Server Setup with CentOS 7 One of the important and basic things you should know in Linux. i.e How to Create and Remove Users. Using the system with default root account is not good, and it will end up in getting security problems. So, it is always good to have a unprivileged user to carry out your task. If you logged in as the root user, you can create new user anytime time by typing the following command. STEP 1- Add the user  # adduser moon # passwd moon In…

GET more here

Basic 10 commands to Find disk usage and Memory Usage in linux

Commands to find disk usage of Files and Directories du (abbreviated from disk usage) is a linux command used to find the file and directory or folder space usage. Step 1 – To check the disk usage detail of wordpress/wp-admin directory and its sub folders. Enter the command as : #du wordpress/wp-admin Step 2 – Now to check the details in “human Readable format”. that is you can see the details in KB, MB, GB format. #du -h wordpress/wp-admin Step 3 –  Insert the -S into the du command, it shows the total disk space occupied by a…

GET more here