#!/bin/bash

# Access command-line arguments
echo "The name of the script is: $0"
echo "The first argument is: $1"
echo "The second argument is: $2"
echo "All arguments passed: $@"
echo "Number of arguments: $#"

# Access exit status
echo "The exit status of the last command is: $?"

# Access process ID
echo "The process ID of the script is: $$"

# Access the current user
echo "The current user is: $USER"

# Access the current hostname
echo "The hostname is: $HOSTNAME"

# Access the current working directory
echo "The current working directory is: $PWD"
