Skip to content

Latest commit

 

History

History
51 lines (27 loc) · 1.33 KB

macos.md

File metadata and controls

51 lines (27 loc) · 1.33 KB

MacOS Cheat Sheet

Window Management

Ctrl + Left or Right - Moves to fullscreen window if there is one

Ctrl + Up - Shows the applications in an overview

Ctrl + Down - Shows the instances of an application in an overview

Ctrl + w - Closes the front window of an application

Opt + Ctrl + w - Closes all windows of an application

Cmd + Ctrl + f - Opens the current application in full screen

System Management

sudo powermetrics --samplers smc | grep -i "CPU die temperature" - Print the CPU die temperature

Java

/Library/Java/JavaVirtualMachines

/usr/libexec/java_home -V

export PATH=/Library/Java/JavaVirtualMachines/<graalvm>/Contents/Home/bin:$PATH

export JAVA_HOME=/Library/Java/JavaVirtualMachines/<graalvm>/Contents/Home

Brew

brew list - Shows the installed packages

brew leaves - Shows the installed leaves packages

brew pin ${package} - Pins an installed package to the currently installed version

brew unpin ${package} - Unpins an installed pin package to allow upgrades of the package

echo $(brew --prefix) - Shows the location where brew is installed

du -ch $(brew --prefix) - Shows the space consumed by homebrew and the installed packages

Finder Dialog

Shift + CMD + . - Shows also hidden files toggle

Shift + CMD + G - Opens the go to the folder direct entry dialog