Tips – POFTUT

Things To Do With Computer When Bored

We work for earn money. We consume our time for money but sometimes we may be bored. Changing current work will made us more happy and will refresh our mind. Here we will provide some useful things to do when we are bored. Consuming time with useful work is important for us. Read Technical Tutorials … Read more

How To Find Out Which Proccess is Listening On A Port for Windows?

System or Network administrators looks ports and applications to solve problems. Getting port and application info in Linux can be done lsof command. But in Windows? netstat is a very popular and useful tool used to get network and port-related information. List Listening Port with netstat Command We will use <a href=”https://www.poftut.com/how-to-check-and-list-listening-ports-with-netstat-in-linux/” target=”_blank” rel=”noopener noreferrer”>netstat</a> … 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

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

Linux Print History Command Without Line Numbers

Linux history command is used to get previously used commands by the current user. The default size for the history command is 1000 which means that last 1000 command will be stored in history. While listing history of bash line numbers are provided too. This is not expected in some situations. To get history without line … Read more