Difference between revisions of "MacOS"
Jump to navigation
Jump to search
Tags: Mobile web edit, Mobile edit |
|||
(41 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{lowercase}} | ||
'''[[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 <code>[[Bash]]</code> 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 <code>[[Bash]]</code> since October 2019. | ||
Line 6: | Line 7: | ||
* <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>/Library/LaunchAgents/</code><ref>https://developer.apple.com/library/archive/documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/CreatingLaunchdJobs.html</ref> | + | * [[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> |
− | |||
− | |||
− | |||
− | |||
+ | sudo [[launchctl load]] YOUR_NEW_SERVICE.plist | ||
+ | sudo [[launchctl start]] com.XXXX.YOUR_NEW_SERVICE | ||
+ | |||
+ | * [[Activity monitor]] | ||
* [[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> | + | * [[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> | ||
− | * | + | * [[Activate SSH server on macOS]] |
− | : 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> |
== Commands == | == Commands == | ||
Line 31: | Line 32: | ||
* [[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>locate</code> command in Linux. | + | * <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> | ||
+ | * <code>[[diskutil]]</code> | ||
+ | * <code>[[lsbom]]</code> | ||
== Software == | == Software == | ||
* [[Virtualization]]: [[VMware Fusion]] | * [[Virtualization]]: [[VMware Fusion]] | ||
+ | * [[Keychain Access]] | ||
== Related terms == | == Related terms == | ||
− | * [[System Integrity Protection]] (2015) | + | * [[System Integrity Protection]] ([[2015]]) |
* [[macOS versions]] | * [[macOS versions]] | ||
+ | * [[XNU]] kernel | ||
+ | * [[HyperKit]] | ||
+ | * [[Gatekeeper]] | ||
+ | * <code>[[/Volumes/]], [[/media/]], [[/private/]]</code> | ||
+ | * [[Parallels]], [[Parallels Toolbox]], [[Alfred]] | ||
+ | * [[Growl]] [[notification]] system | ||
+ | * [[Recycle bin]] | ||
+ | * [[iMazing]] | ||
+ | * [[MacStadium]], [[AWS EC2 macOS]] | ||
+ | * [[macOS Preview]] application | ||
+ | * [[Secure Enclave Processor (SEP)]] | ||
+ | * [[UTM]] | ||
+ | * [[Jamf]] | ||
+ | * <code>[[iOS]], [[iPadOS]]</code> | ||
+ | * [[Amazon EC2 Mac Instances]] | ||
+ | * [[macOS text expander]] | ||
− | == See | + | == See also == |
+ | * {{macOS FHS}} | ||
* {{macOS}} | * {{macOS}} | ||
− | |||
* {{OS}} | * {{OS}} | ||
Latest revision as of 10:49, 25 January 2024
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. zsh
is the default shell replacing Bash
since October 2019.
Resources[edit]
- macOS: How to create a folder
pkgutil
software package management toolhomebrew
software package management tool- Install additional software using homebrew package management software and
brew
command. - launchd init and operating system service management daemon for MacOS. Path:
/Library/LaunchAgents/
[1]
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
- Activate SSH server on macOS
- Enable:
sudo systemsetup -setremotelogin on
[2] - Disable:
sudo systemsetup -setremotelogin off
- Status:
sudo systemsetup -getremotelogin
- Enable:
Commands[edit]
defaults
system_profiler
ipconfig
ifconfig
networksetup
hdiutil
disk image manipulation tool- AppleScript:
osascript
. Example:osascript -e 'display notification "Lorem ipsum dolor sit amet" with title "Title"'
pbcopy
[3] Copy to clipboard[4]mdfind
finds files matching a given query. Similar tolocate
command in Linux.xcode-select --install
diskutil
lsbom
Software[edit]
Related terms[edit]
- System Integrity Protection (2015)
- macOS versions
- XNU kernel
- HyperKit
- Gatekeeper
/Volumes/, /media/, /private/
- Parallels, Parallels Toolbox, Alfred
- Growl notification system
- Recycle bin
- iMazing
- MacStadium, AWS EC2 macOS
- macOS Preview application
- Secure Enclave Processor (SEP)
- UTM
- Jamf
iOS, iPadOS
- Amazon EC2 Mac Instances
- macOS text expander
See also[edit]
/Volumes/, /media/, /System/, /System/Library/, /private/
,/Users/
,/Library/
,/Applications/, ~/Library/, /usr/libexec/, ~/Downloads/
, Finder- macOS: macOS versions, iTerm2, Homebrew, FileVault, System Integrity Protection,
dscacheutil
,networksetup
, XNU kernel, APFS, diskutil, mdfind, Keychain Access, Growl, Activity Monitor, sidecar, macOS FHS, Apple Notification Center,sw_vers
, Spotlight,pbcopy
, MacOS application firewall,Applesimutils
, Automatic login,security (command)
,codesign
,spctl
, Alfred, Xcode,system_profiler
,log show
, MacOS Preview, Rectangle app, Finder, macOS: Shortcuts, SEP, osascript, macOS profile, UTM,softwareupdate, systemsetup, pmset
, macOS tips, macOS Dock, Automator, SIP, System Preferences,installer, cryptex
, AirPlay, macOs first setup, Universal Control, menu bar, IPSW - OS: Linux, macOS, Windows, OpenBSD, FreeBSD, NetBSD, Solaris, AIX, Hypervisor, Hyper-converged infrastructure, VxWorks, RTOS, Integrity
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
- ↑ https://developer.apple.com/library/archive/documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/CreatingLaunchdJobs.html
- ↑ http://osxdaily.com/2016/08/16/enable-ssh-mac-command-line/
- ↑ https://ss64.com/osx/pbcopy.html
- ↑ https://www.cnet.com/how-to/how-to-pipe-command-output-to-the-clipboard-in-os-x/
Advertising: