fork download
  1.  
Success #stdin #stdout 0.01s 8096KB
stdin
#!/bin/bash

echo "Choose a command to execute:"
echo "1. List files (ls)"
echo "2. Display current directory (pwd)"
echo "3. Show current date and time (date)"
echo "4. Show calendar (cal)"
echo "5. Display disk usage (df -h)"
echo "6. Exit"

read -p "Enter your choice (1-6): " choice

case $choice in
    1)
        echo "Listing files..."
        ls
        ;;
    2)
        echo "Current directory:"
        pwd
        ;;
    3)
        echo "Current date and time:"
        date
        ;;
    4)
        echo "Calendar:"
        cal
        ;;
    5)
        echo "Disk usage:"
        df -h
        ;;
    6)
        echo "Exiting..."
        exit 0
        ;;
    *)
        echo "Invalid choice. Please enter a number between 1 and 6."
        ;;
esac
stdout
Standard output is empty