POFTUT – Page 145 – Linux, Windows, Security, Programming, Network Tutorials

Dstat- Monitor Linux Server Performance

There are a lot of Linux server monitoring tools in the wild. They have strong and weak sides against others. To get more about Linux server monitoring dstat can be used. Features of dstat are joining information from tools like vmstat, netstat, mpstat, displaying statistics simultaneously, list ordering, exporting to CSV. How to Install dstat … Read more

Pip ffi.h Gcc Error

pip is a tool used to install Python modules from a central python repository. While using pip command there may be some error like ffi.h gcc .This error will look like below. #include <ffi.h>                     ^    compilation terminated.    error: command ‘gcc’ failed with exit status 1 Install libffi-dev This problem is related to the libffi libraries. … Read more

How To Get Runnig VM Ip Address in Kvm/Libvirt

There are times when we start virtual machine and want to get ip address quickly without open any GUI or connecting virtual machines console. Here is the tip. virsh domiflist Command #!/bin/bash VMNAME=$1 for mac in `sudo virsh domiflist $VMNAME |grep -o -E “([0-9a-f]{2}:){5}([0-9a-f]{2})”` ; do arp -e | grep $mac  | grep -o -P … Read more

10 Things To Do After Fedora Installation

Fedora is popular distribution among Linux community. I am already using Fedora too. I prefer Fedora because of its updated packages and virtualization support. If you are not using it please give a try. After installation, there are things to do in Fedora to make the user experience more smooth. These steps can be implemented … Read more

JavaScript “Uncaught TypeError: Cannot set property ‘…’ of null ” Error Solutions

While writing JavaScript beginners get a lot of Uncaught TypeError: Cannot set property ‘…’ of null error message so what is the problem with the code? Define Object During JavaScript Initialization Here is number one reason the object you try to access is not defined. It may define later. It is not a joke because if … Read more

Python String Variable Type

The string is a type used to hold text data in Python programming language. We can hold name, surname, address, text or similar data in strings. There are different functions that can be used with these string data. In this tutorial, we will look at them in detail. Define String Variable Defining string is easy … Read more

How to Install Ansible and Manage Servers?

Enterprise IT needs more than traditional IT tools. Because there are different architecture and styles in IT infrastructure. In a small company one web server is enough for all but in an enterprise company, there may be 10 – 100 web servers for the department’s different needs. Here one of the most important things is … Read more

Grep and Filter IP Address In Linux

Searching IP address in a text file or a console output may become cumbersome. This little command named grep will help you in this way. Example Data We have a file or output which includes the IP address and we want to extract just IP addresses nothing other. This file is created with a nmap … Read more

How To Shuffle/Randomize Array in PHP

There are different ways to randomly select elements of an array in PHP. But recurring elements are biggest problem most of them. Here the clean and PHP library supported solution for this. We will use shuffle() function which will change the positions of the given array. Shuffle Example shuffle() function accept only single parameter which is the … Read more

How To Run Parallel Jobs/Process/Programs in Bash

We generally run jobs in bash in serial order. Serial order means one command runs and after completion other command starts. There is another way to run jobs which are named parallel. Running parallel means multiple jobs run at the same time side by side. Send Job To The Background We will start with a … Read more