This article will show you how to Telnet via BASH script and return the status as open or close. This has been tested on CentOS/RedHat and hopefully should work on all other Linux distributions as well.
Add a commentThis article will show you how to Telnet via BASH script and return the status as open or close. This has been tested on CentOS/RedHat and hopefully should work on all other Linux distributions as well.
Add a commentShowing Line numbers in Vi /Vim Text editor would be very helpful when it comes to troubleshooting code errors in a file. This works on almost all Linux/UNIX distributions. Once you are in the edit file mode, Type while in edit mode ":set nu" OR ":set number" and then it will show you the Line numbers and then you can jump to a specific line by typing ":number" or any line number you require.
Add a commentReducing LVM disk size is possible using lvreduce on the fly without a reboot. Make sure that data is backed up for the disk to be resized so that FREE space can be reused. LVM (Logical Volume Management) is very efficient when it comes to mounting/partitioning disks in Linux. You need to be ROOT to carry out this process.
Add a commentIts now possible to extend LVM disk/partition to more than 2TB that too without using Parted, GPT or Kernel editing.After doing lots of Googling and not a single article explaining about extending LVM volume without GPT, I came up with this article which has been fully tested and working. It was tested on a 4TB disk with a single partition of 3.5TB. The LVM extension can be done without loosing any data although I would still recommend backing up the data as a precautionary measure.
NOTE: This has been tested in a DEV environment and assume no responsibility with regards to performance effect on the disk/volume in Production although the disk tested has been in a perfect condition and working for more than 2 years now.
Add a commentIts easy to setup DHCP server in Linux with full control over the IP's and what IP's are assigned to client hosts. We would be using DHCP package via YUM for this setup. DHCP is used for dynamic assinging of IP addresses for the clients in a network. First of all we would install the dhcp package.
Add a comment