You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何修改电脑关机提示信息(例如"Goodbye, (username)")?

Hey there! Changing that custom shutdown greeting like "Goodbye, [username]" is totally achievable—just depends on which operating system you're using. Let's walk through the steps for the two most common setups:

Windows 系统修改方法

⚠️ Important note: Always back up your registry before making changes! Incorrect edits can cause system stability issues.

  • Press Win + R, type regedit, and hit Enter to open the Registry Editor (you'll need admin rights for this).
  • Navigate to this path:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\Shutdown
    
  • If the Shutdown key doesn't exist: Right-click on LogonUI → New → Key, name it Shutdown.
  • Inside the Shutdown key, right-click an empty space → New → String Value, name it AlternateShutdownMessage.
  • Double-click the new string value, paste your custom message (e.g., "See you later! Have an awesome day!") in the "Value data" field, then click OK.
  • Log out and shut down—your new greeting should show up!
Linux 系统修改方法

Linux has two scenarios to consider: graphical desktop shutdown prompts and terminal-based shutdown messages.

GNOME Desktop (Most common for Ubuntu, Fedora, etc.)

  • The shutdown message is controlled by GDM (GNOME Display Manager). Open a terminal and run:
    sudo nano /etc/gdm3/greeter.dconf-defaults
    
  • Look for a line like # shutdown-message='Goodbye'—remove the # to uncomment it, then replace the text inside the quotes with your custom message:
    shutdown-message='Catch you next time!'
    
  • Save and exit Nano with Ctrl+O (press Enter to confirm) then Ctrl+X.
  • Restart GDM to apply changes:
    sudo systemctl restart gdm3
    
  • Log out and shut down to see your new greeting.

Note: For KDE Plasma, head to System Settings → Workspace Behavior → Screen Locking (or similar) to find shutdown message options, or edit ~/.config/plasma-workspace/shutdown for more advanced tweaks.

Terminal Shutdown Messages

If you want a custom message when using the shutdown command in the terminal:

  • To add a one-time message, use:
    shutdown -h +5 "Time to wrap up! System will shut down in 5 minutes."
    
  • To set a default message for every terminal shutdown, edit your shell config file (e.g., ~/.bashrc for Bash, ~/.zshrc for Zsh):
    1. Open the file with:
      nano ~/.bashrc
      
    2. Add this line at the bottom:
      alias shutdown='shutdown -h now "Your custom goodbye message here"'
      
    3. Save and exit, then run source ~/.bashrc to apply the change immediately.

Hope that helps! If you run into snags with a specific OS or desktop environment, feel free to follow up.

内容的提问来源于stack exchange,提问作者Psionikal

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.19 08:44:07