-
connect to vnc via socks proxy
If you want to connect to remote server (running vnc on local port) but using another host as jump node (bastion).
-
Delete all files except
Delete all files except particular extension lets say bam
-
unique lines from two files
How to get unique lines from two files (fileA, and fileB) and store the lines in file-unique .
-
block countries based on Geo-IP with iptables Ubuntu 16 and 18
Blocking based on geographical locations like countries need a list of IP ranges allocated to this by IANA. Now you have two options To get the list of IP ranges and create the IP tables rules your self To have module in Iptables which works above Luckily there is module for iptables which can work […]
-
Get Hardware server model info in linux terminal
dmidecode | grep -A3 ‘^System Information’
-
check host down or up with ping command line
for i in {01..36}; do ping -c 1 tancn$i.cm.cluster &> /dev/null && echo success || echo pcn$i fail ; done
-
delete all files except in linux
find .!-iname dir1 !-iname dir2 -exec rm -rf {} \;
-
zfs cache file regenerate
The /etc/zfs/zpool.cache file Whenever a pool is imported on the system it will be added to the /etc/zfs/zpool.cache file. This file stores pool configuration information, such as the device names and pool state. If this file exists when running the zpool import command then it will be used to determine the list of pools available for import. When […]
-
Installing Intel Omnipath 100G on Centos 7
Intel Omnipath is 100G fabric a less expensive alternative for Mellanox 100G.. we recently bought 10 Racks of servers with 100G Omnipath . Until recently there is NO driver for Ubuntu , but i love centos so i kicked that in .. Introduction to Intel® Omni-Path Architecture Intel OPA is the latest generation of […]