Last active
December 29, 2017 17:46
-
-
Save hannic/5995312 to your computer and use it in GitHub Desktop.
Advanced Mac OS commands
This file contains hidden or 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
############################################################################### | |
# Web server / Networking # | |
############################################################################### | |
# simple web server | |
$ python -m SimpleHTTPServer 8000 | |
$ uptime | |
# lan ip address | |
$ ipconfig getifaddr en0 | |
# global ip address | |
$ curl ipecho.net/plain; echo | |
############################################################################### | |
# Terminal # | |
############################################################################### | |
$ history | |
$ say | |
!! or sudo!! | |
$ yes | |
$ pbcopy | |
# | |
$ sudo fs_usage | |
$ ditto -V /old/work/ /new/work/ | |
# | |
$ sudo shutdown -h now | |
$ sudo shutdown -r now | |
$ sudo shutdown -r +60 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment