Difference between revisions of "MacOS"

From wikieduonline
Jump to navigation Jump to search
Line 21: Line 21:
 
* 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 ssh from command line:
: Enable: <code>sudo systemsetup -setremotelogin on</code><ref>http://osxdaily.com/2016/08/16/enable-ssh-mac-command-line/</ref>
+
: 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>
 
: Disable: <code>sudo systemsetup -setremotelogin off</code>
 
: Status: <code>sudo systemsetup -getremotelogin</code>
 
: Status: <code>sudo systemsetup -getremotelogin</code>

Revision as of 12:30, 10 December 2019

macOS logo

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.[1]. zsh is the default shell replacing Bash since October 2019.

Resources

sudo launchctl load YOUR_NEW_SERVICE.plist
sudo launchctl start com.XXXX.YOUR_NEW_SERVICE


  • /Create a user from command line/: sysadminctl -addUser YOUR_USERNAME
  • Display your DNS configuration in macOS running: scutil --dns
  • Sleep your macOS from command line:pmset sleepnow
  • Enable ssh from command line:
Enable: sudo systemsetup -setremotelogin on[3]
Disable: sudo systemsetup -setremotelogin off
Status: sudo systemsetup -getremotelogin

Commands

Software

See Also

Text is available under the Creative Commons Attribution-ShareAlike License; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy.

Original source: https://en.wikiversity.org/wiki/MacOS

Advertising: