Category: Bash

  • How to Scan and Repair SSDs on a Linux Server

    Solid State Drives (SSDs) are widely used in servers as they provide faster data access and improved performance compared to traditional hard drives. However, like any other storage device, SSDs can develop errors or issues over time. In this tutorial, we will show you how to scan and repair SSDs on a Linux server using…

  • Download WordPress latest and unzip to root directory – Bash (upgraded to wp-cli)

    I was looking for something like this for my local development environment, but created one instead. I called it dlwp !# /bin/bash read -r -p “Is this the root directory? [y/N] ” response case $response in [yY][eE][sS]|[yY]) wget https://wordpress.org/latest.tar.gz tar -zxvf latest.tar.gz cd wordpress mv -i * ../ cd .. rm -rf wordpress rm -rf…