3 views

Method 1: Call the script with -x option in bash

bash -x ./scriptname.sh

Method 2: Enable debug mode inside the script

#!/bin/bash
set -x  #Enabling debug
echo 'Hello world'
Sep 8, 2010 by | 3 views
Articles for DevOps Geeks
MobaXterm Customization
CHMOD Explained!
Bash history powerful tips
Ubuntu bash from Windows
..