Welcome to kriss.run!


Back

test.sh

#!/usr/bin/env bash

echo
echo "This is a test script!"
echo "Current PID: $$"
echo "Current shell: $SHELL"
echo "Current user: $(whoami)"
echo "Current date: $(date)"
echo "Hello, $USER!"
echo "Home directory: $HOME"
echo "Current directory: $(pwd)"
echo "Script name: $0"
echo "Number of parameters: $#"
echo "Parameters: $*"
echo