Vivek Gite

Let us say you want to repeat a character such as ‘-‘ OR ‘=‘ multiple times while writing bash script. Please note that I needed a quick script to work on Linux, macOS, and FreeBSD server to repeat a string/character n times. One simple way to to repeat a string or character n times is simple use the echo command/printf command as follows:
echo '------------------------------------'
printf '%s\n' '------------------------------------'

[continue reading…]

When working with FreeBSD and ZFS, you will run into ZFS cache size problems. Not all FreeBSD servers are file servers. Some servers act as backup servers. Others might run Linux and Windows VM where you want those guest VMs to manage their own caching. It would help if you had tons of RAM for ZFS, but you may not have that luxury in real life. This page explains how to set up ZFS arc size on FreeBSD to work with less RAM to avoid the computer running out of memory in the kernel.
[continue reading…]
Typically, we apply firmware updates to fix a security issue and enhance SATA/PCIe/NVMe solid-state (SSD) drive performance. Failing to install available updates may lead to vulnerable SSD. This quick guide explains how to update Samsung SSD firmware on Linux without using Windows operating system.
[continue reading…]

We use the df command to find total disk space and available space on a Linux / Unix file system. Let us see how to use the df command to view the amount of free space left on your Linux, macOS, *BSD and Unix file system. We will also explain how to automate disk space monitoring and send an email alert or push notification to your mobile device.
[continue reading…]