Editing MacOS
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | + | '''[[wikipedia:macOS|macOS]]''' (previously Mac OS X, then OS X) is a series of graphical operating systems developed and marketed by Apple Inc. since 2001. It is the primary operating system for Apple's Mac family of computers. <code>[[zsh]]</code> is the default shell replacing [[Bash]] since October 2019. | |
− | '''[[wikipedia:macOS|macOS]]''' (previously Mac OS X, then OS X) is a series of graphical operating systems developed and marketed by Apple Inc. since 2001. It is the primary operating system for Apple's Mac family of computers. <code>[[zsh]]</code> is the default shell replacing | ||
== Resources == | == Resources == | ||
Line 7: | Line 6: | ||
* <code>[[homebrew]]</code> software package management tool | * <code>[[homebrew]]</code> software package management tool | ||
* Install additional software using [[homebrew]] package management software and <code>[[brew]]</code> command. | * Install additional software using [[homebrew]] package management software and <code>[[brew]]</code> command. | ||
− | * [[launchd]] init and operating system service management daemon for MacOS. Path: <code> | + | * [[launchd]] init and operating system service management daemon for MacOS. Path: <code>/Library/LaunchAgents/</code><ref>https://developer.apple.com/library/archive/documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/CreatingLaunchdJobs.html</ref> |
+ | <pre> | ||
+ | sudo launchctl load YOUR_NEW_SERVICE.plist | ||
+ | sudo launchctl start com.XXXX.YOUR_NEW_SERVICE | ||
+ | </pre> | ||
− | |||
− | |||
− | |||
− | |||
* [[Create a user from command line]]: <code>[[sysadminctl]] -addUser YOUR_USERNAME</code> | * [[Create a user from command line]]: <code>[[sysadminctl]] -addUser YOUR_USERNAME</code> | ||
− | * | + | * Display your [[DNS]] configuration in [[macOS]] running: <code>[[scutil]] --dns</code> |
* Sleep your macOS from command line:<code>pmset sleepnow</code> | * Sleep your macOS from command line:<code>pmset sleepnow</code> | ||
− | * | + | * Enable ssh from command line: |
− | + | : Enable: <code>sudo [[systemsetup]] -setremotelogin on</code><ref>http://osxdaily.com/2016/08/16/enable-ssh-mac-command-line/</ref> | |
− | + | : Disable: <code>sudo systemsetup -setremotelogin off</code> | |
− | + | : Status: <code>sudo systemsetup -getremotelogin</code> | |
== Commands == | == Commands == | ||
Line 32: | Line 31: | ||
* [[AppleScript]]: <code>[[osascript]]</code>. Example: <code>osascript -e 'display notification "Lorem ipsum dolor sit amet" with title "Title"'</code> | * [[AppleScript]]: <code>[[osascript]]</code>. Example: <code>osascript -e 'display notification "Lorem ipsum dolor sit amet" with title "Title"'</code> | ||
* <code>[[pbcopy]]</code><ref>https://ss64.com/osx/pbcopy.html</ref> Copy to clipboard<ref>https://www.cnet.com/how-to/how-to-pipe-command-output-to-the-clipboard-in-os-x/</ref> | * <code>[[pbcopy]]</code><ref>https://ss64.com/osx/pbcopy.html</ref> Copy to clipboard<ref>https://www.cnet.com/how-to/how-to-pipe-command-output-to-the-clipboard-in-os-x/</ref> | ||
− | * <code>[[mdfind]]</code> finds files matching a given query. Similar to <code> | + | * <code>[[mdfind]]</code> finds files matching a given query. Similar to <code>locate</code> command in Linux. |
* <code>[[xcode]]-select --install</code> | * <code>[[xcode]]-select --install</code> | ||
− | |||
− | |||
== Software == | == Software == | ||
* [[Virtualization]]: [[VMware Fusion]] | * [[Virtualization]]: [[VMware Fusion]] | ||
− | |||
− | + | == See Also == | |
− | + | * {{OS}} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | == See | ||
− | * {{ | ||
* {{macOS}} | * {{macOS}} | ||
− | |||
{{CC license}} | {{CC license}} |
Advertising: