Last active
February 8, 2018 14:30
-
-
Save juangesino/1033b8ca1f9a8158fa3a5b17e278ef61 to your computer and use it in GitHub Desktop.
[Terminal Commands] A bunch of useful commands for macOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Get MAC address | |
ifconfig en0 | grep ether | |
# Set a new MAC address | |
sudo ifconfig en0 ether aa:bb:cc:dd:ee:ff | |
# Set random MAC | |
openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//' | xargs sudo ifconfig en0 ether | |
# Save energy | |
## Kill Flux | |
pkill -9 "Flux" | |
## Kill Lux | |
pkill -9 "Lux" | |
## Kill Evernote | |
pkill -9 "Evernote" | |
## Kill Google Chrome | |
pkill -9 "Google Chrome" | |
## Turn Bluetooth off (brew install blueutil) | |
blueutil off |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment