system.sh 360 B

1234567891011121314151617181920212223
  1. #!/usr/bin/env bash
  2. clear
  3. echo "Hi, $USER"
  4. echo
  5. echo "Today's date is $(date), this is week $(date +"%V")."
  6. echo
  7. echo "These users are currently connected:"
  8. w | cut -d " " -f 1 - | grep -v USER | sort -u
  9. echo
  10. echo "This is $(uname -s) running on a $(uname -m) processor."
  11. echo
  12. echo "This is the uptime information:"
  13. uptime
  14. echo
  15. echo "That's all folks!"