🖥️pmset
➡️This is a command-line reference manual for commands and command combinations that you don’t use often enough to remember it. This cheatsheet explains the pmset command with important options and switches using examples.
2 minute read
▁ ▂ ▃ ▄ ꧁ 🔴☠ COMMANDLINE-KUNGFU WITH CHEATSHEETS ☠🔴꧂▅ ▃ ▂ ▁
# ██████╗ ███╗ ███╗███████╗███████╗████████╗
# ██╔══██╗████╗ ████║██╔════╝██╔════╝╚══██╔══╝
# ██████╔╝██╔████╔██║███████╗█████╗ ██║
# ██╔═══╝ ██║╚██╔╝██║╚════██║██╔══╝ ██║
# ██║ ██║ ╚═╝ ██║███████║███████╗ ██║
# ╚═╝ ╚═╝ ╚═╝╚══════╝╚══════╝ ╚═╝
# Configure macOS power management settings, as one might do in System Preferences > Energy Saver.
# Commands that modify settings must begin with sudo (Mac OS X)
# Display the current power management settings:
pmset -g
# Display the current power source and battery levels - Remaining battery time is displayed in minutes
pmset -g batt | awk '/^ /{print $5}'
# Set display to never sleep when on charger power:
sudo pmset -c displaysleep 0
# Set display to sleep after 15 minutes when on battery power:
sudo pmset -b displaysleep 15
# Schedule computer to automatically wake up every weekday at 9 AM:
sudo pmset repeat wake MTWRF 09:00:00
# Restore to system defaults:
sudo pmset -a displaysleep 10 disksleep 10 sleep 30 womp 1
#==============================##==============================#
# CMD PMSET #
#==============================##==============================#
Cheatsheets are an excellent complement to other information sources like Linux man-pages, Linux help, or How-To’s and tutorials, as they provide compact and easily accessible information. While man-pages and detailed tutorials often contain comprehensive explanations and extensive guides, cheatsheets summarize the most important options forthe command pmset in a clear format. This allows users to quickly access the needed information for pmset without having to sift through lengthy texts. Especially in stressful situations or for recurring tasks, cheatsheets for pmset are a valuable resource to work efficiently and purposefully.
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
█║▌│║█║▌★ KALI ★ PARROT ★ DEBIAN 🔴 PENTESTING ★ HACKING ★ █║▌│║█║▌
██╗ ██╗ ██████╗ ██████╗ ██╗ ██╗███████╗██████╗
████████╗██╔══██╗██╔═══██╗╚██╗██╔╝██╔════╝██╔══██╗
╚██╔═██╔╝██║ ██║██║ ██║ ╚███╔╝ █████╗ ██║ ██║
████████╗██║ ██║██║ ██║ ██╔██╗ ██╔══╝ ██║ ██║
╚██╔═██╔╝██████╔╝╚██████╔╝██╔╝ ██╗███████╗██████╔╝
╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚══════╝╚═════╝
█║▌│║█║▌ WITH COMMANDLINE-KUNGFU POWER █║▌│║█║▌
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.