Skip to content
TheChatArchiveThe Chat Archive
o4-mini-2025-04-16· OpenAIHugging Face LMArena Human Preference 140K

ubuntu cmd to shut off pc in 1 hour

From a Chatbot Arena battleThe same person sent this prompt to two anonymous models at once. Compare it with Geminigemini-2.5-pro-preview-03-25’s answer.
  1. User

    ubuntu cmd to shut off pc in 1 hour

  2. Assistant

    You can schedule a one-hour-delayed shutdown right from the terminal. For example:

    sudo shutdown -h +60 "Shutting down in 1 hour"
    

    Explanation:

    • sudo – run as root
    • shutdown – the shutdown command
    • -h – halt/power-off after shutting down
    • +60 – wait 60 minutes before executing
    • "…" – optional message broadcast to logged-in users

    If you change your mind before the hour’s up, cancel it with:

    sudo shutdown -c
    

    Alternative methods:

    1. Using sleep + poweroff:

      sleep 3600 && sudo poweroff
      
    2. Using at (if you have at installed):

      echo "poweroff" | sudo at now + 1 hour
      

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.