Skip to main content
Share Your Experience: Take the 2024 Developer Survey
108 votes
Accepted

Why is macOS often referred to as 'Darwin'?

Why is macOS often referred to as 'Darwin'? It isn't. macOS isn't Darwin and Darwin isn't macOS. The history of macOS is long, convoluted, and complicated. It starts with Steve Jobs (not entirely ...
Jörg W Mittag's user avatar
73 votes

Does macOS have a command to retrieve detailed CPU information like /proc/cpuinfo on Linux?

The Terminal command sysctl might be what you're looking for, in particular sysctl -a | grep machdep.cpu: [my_mac:~] admin% sysctl -a | grep machdep.cpu machdep.cpu.max_basic: 22 machdep.cpu.max_ext: ...
IconDaemon's user avatar
  • 19.3k
30 votes
Accepted

Is there a `watch` command native to Darwin/OS X?

There is no native alternative. You must acquire watch from using Homebrew (brew install watch) or MacPorts (port install watch) if you require an actual executable. You can however, emulate the ...
NetherLinks's user avatar
  • 2,605
28 votes

Why is macOS often referred to as 'Darwin'?

Darwin is the core upon which macOS (previously Mac OS X, and OS X) runs on. It is derived from NextSTEP, which itself is built upon a BSD and Mach core, but Darwin is the open source portion of macOS....
Scott Earle's user avatar
  • 4,006
20 votes

What does the time command do on zsh Mac terminal? And what is the output of "children"?

The time you use in your question is not a command, but rather a reserved word in zsh. It can be used in two different ways and its output can be customized through the $TIMEFMT parameter. ...
Marlon Richert's user avatar
15 votes

How do I install sudo insults on Mac?

To install a sudo with insults you have to compile it yourself: Requirements: Xcode 8.0, Sierra 10.12, probably SIP disabled Backup sudo and visudo: sudo cp /usr/bin/sudo /usr/bin/sudo.backup sudo ...
klanomath's user avatar
  • 66.5k
11 votes

Why is macOS often referred to as 'Darwin'?

There are lots of ways to fingerprint an OS, but a canonical method for this on unix-like systems is to call uname Which outputs Darwin on all macOS versions and builds. Apple publishes the source ...
bmike's user avatar
  • 237k
8 votes

Does macOS have a command to retrieve detailed CPU information like /proc/cpuinfo on Linux?

If you go to the Apple menu item and under that is the option "About This Mac". Select that and when the pane shown below appears notice the buttons on the bottom. The pane itself gives you some info ...
Natsfan's user avatar
  • 14.2k
8 votes

Why is macOS often referred to as 'Darwin'?

From Wikipedia, Darwin is an open-source Unix-like operating system first released by Apple Inc. in 2000. It is composed of code developed by Apple, as well as code derived from NeXTSTEP, BSD, Mach, ...
Natsfan's user avatar
  • 14.2k
6 votes
Accepted

Do terminal TTYs for iOS and macOS exist?

TTYs exist and operate in Mac OS X and macOS just as they do in any other UNIX or UNIX-like operating system. When macOS boots, the TTY that inits to subsequently load the GUI is always console. ...
Trane Francks's user avatar
6 votes
Accepted

Run the macOS desktop environment on Linux

It is correct that macOS runs upon the kernel named Darwin that Apple develops. Its source code is available online. However, it is not exactly a "distribution" of BSD: If you compare it to ...
jksoegaard's user avatar
  • 78.1k
5 votes

Why is 'xattr' not working?

Might want to add some newer info per 2023: The xattr executable shipped with macOS 13.2 is no longer a Python script, but a native binary, so the original issue should no longer be possible: $ file /...
oligofren's user avatar
  • 372
4 votes
Accepted

extract by terminal the Darwin version

That is very simple using uname with the r option. uname -r and sysctl -n kern.osrelease would give you the same results.
fd0's user avatar
  • 10.8k
3 votes

What are the benefits of XNU using Mach features compared to a full FreeBSD kernel?

I would argue that it is a bit too simplistic to say that the Darwin kernel is simply a hybrid of Mach and FreeBSD. Trying to look at without the historic implications of why the architecture was ...
jksoegaard's user avatar
  • 78.1k
3 votes

Installing GNU compilers on PureDarwin/Darwin?

Your link is broken to the instructions. FYI, the point of macOS is, to a large degree, the fact that it IS a walled garden. Having control over the entire hardware and software stack lets Apple ...
zbeekman's user avatar
  • 131
3 votes

What is the most OSX or Darwin-like command-line experience available (without buying an expensive Mac or hauling my production machines home)?

Use ssh on the netbook to log into a remote Mac and learn the commands that way.
jejorda2's user avatar
  • 131
3 votes
Accepted

What is the correct ownership for subdirectories in /usr/local

Out of the box - root:wheel has ownership of /usr/local and 0755 permissions. It's really up to you what you want. Since you clearly have homebrew or remnants of that, I'd do whatever brew doctor says ...
bmike's user avatar
  • 237k
3 votes
Accepted

xattr: bad interpreter: No such file or directory

The error comes from /usr/local/bin/xattr, but you examine /usr/bin/xattr. So either remove the one in local, or replace /usr/local/opt/[email protected]/bin/python3.11 in the first line of the script with ...
nohillside's user avatar
  • 101k
2 votes

Is /usr/local a per user folder?

No, /usr/local is not a per-user folder. It's the same directory for all users. I've been down this road with homebrew and done the chown to /usr/local on a laptop that only I use, but my other non-...
Br.Bill's user avatar
  • 244
2 votes

Is the source code for xnu-6153.60.66~39 available? (iOS 13.3 Kernel)

Yes, Apple does still open source the XNU kernel. However, there's usually quite a time lag from the time macOS is released for iOS products and until the corresponding XNU kernel source is publicized....
jksoegaard's user avatar
  • 78.1k
2 votes
Accepted

How to make a bootable partition from scratch?

What makes it bootable? This has change slightly over time. I will assume you are not going to use encryption. Below are some basic examples. This is not a complete list. The original OS X operating ...
David Anderson's user avatar
2 votes

Why is macOS often referred to as 'Darwin'?

Here is a quote from the book Take Control of the Mac Command Line with Terminal When Apple bought NeXT in 1996, they began building a new operating system that extended and enhanced NeXTSTEP while ...
HemanthJabalpuri's user avatar
2 votes
Accepted

What's the `darwin` in Mac?

"Darwin is an open-source Unix-like operating system first released by Apple Inc. in 2000. It is composed of code developed by Apple, as well as code derived from NeXTSTEP, BSD, Mach, and other free ...
benwiggy's user avatar
  • 36.3k
2 votes
Accepted

stat command not respecting time format options (High Sierra 10.13.6)

You need to place a S before B which converts the numerals (seconds since epoch) into string output. stat -f "%SB" -t "%Y-%m-%d" ~/Pictures/to_backup/IMG_2115.JPEG
fd0's user avatar
  • 10.8k
2 votes
Accepted

darwinup: command not found

Building Darwin from source is quite different now that Apple has discontinued that tool. The technical problem is that the darwinup utility is not compatible with the security requirements of Big ...
bmike's user avatar
  • 237k
2 votes

Is there a way to export aliases in macOS in the Korn Shell (ksh)?

As a general rule, put idempotent things (e.g., setting the PATH environment variable) in ~/.profile, but put things that must be performed on a per-shell/subshell basis (e.g., aliases; HISTFILE and ...
Andreas ZUERCHER's user avatar
1 vote

Is there a way to export aliases in macOS in the Korn Shell (ksh)?

I am not much of a ksh user so some other users will probably be able to improve on this answer. (Or disapprove.) While I have not found how to export aliases, I have found how to save the aliases to ...
David Anderson's user avatar
1 vote

How to generate list of Homebrew formulas/packages sorted by "most recently updated" (by package provider)?

Open this folder in Finder: /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula ⌘ ⇧ G in Finder will bring up a “Go To Folder…” dialog box. You can then paste the path from above into ...
TJ Luoma's user avatar
  • 20.7k
1 vote
Accepted

What is the purpose of speculative memory?

Speculative memory (introduced with OS X 10.5) means that the kernel has marked a specific page of memory as being "speculative" - meaning that it is stored by the kernel because it predicts that it ...
jksoegaard's user avatar
  • 78.1k
1 vote
Accepted

Can't get past login screen

The system may have been joined to an Active Directory (or other kind) of network authentication domain that would make changing the local admin password not work for long. On general principles I ...
Steve Chambers's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible