Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [darwin]

Darwin is the open source POSIX/UNIX operating system on which OSX is built

Filter by
Sorted by
Tagged with
2 votes
0 answers
24 views

Wifi has stopped working on MacBook Air

I have a MacBook Air Dual-Core Intel Core i5 running Darwin 21.1.0. I think it’s about 6-8 years old. Today my Wifi stopped working. It comes up with an exclamation mark over the wifi symbol on the ...
user avatar
  • 21
8 votes
1 answer
1k views

MacOS Monterey Terminal CLI: "open" command does not change focus

Has anyone encountered an issue in which Terminal.app is no longer able to switch focus to another application? For example, typing in the command open . would have previously opened the current ...
user avatar
  • 331
1 vote
2 answers
106 views

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

Earlier versions of the Korn shell (ksh) allowed aliases to be exported to subshells by using the -x option, for example: alias -x dog=cat With the current version of macOS the ksh man page says: &...
user avatar
2 votes
1 answer
366 views

darwinup: command not found

I need to use darwinup on my macOS (11.5) and it is just not founded by system. It seems to be default binary in OS X but somehow I don't have it. Do you know how could I get it? I didn't found any ...
user avatar
6 votes
1 answer
2k views

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

This is what I got from the terminal command "time". shell 0.32s user 0.08s system 0% cpu 6:09.64 total children 0.10s user 0.16s system 0% cpu 6:09.64 total What is children?
user avatar
-1 votes
1 answer
122 views

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

The Darwin kernel is a hybrid of Mach and FreeBSD. What are the benefits of using such a hybrid architecture compared to a full FreeBSD kernel? I'm not looking for subjective opinions of why this ...
user avatar
  • 217
-3 votes
2 answers
3k views

Run the macOS desktop environment on Linux [closed]

As I know, macOS is using Darwin kernel and Darwin is a distribution of BSD. So macOS is in the UNIX family and can run most Linux / BSD / Solaris software on it. Maybe there is a way to install ...
user avatar
53 votes
4 answers
19k views

Why is macOS often referred to as 'Darwin'?

In several languages, instead of returning something like "macOS", the command to view the operating system instead returns Darwin I see this in languages like R, and node. Why is macOS ...
user avatar
  • 2,967
0 votes
1 answer
356 views

What's the `darwin` in Mac?

In my Mac I execute the code: import sys print(sys.platform) then get darwin, why it is not OSX. I don't know where to look for documentation on python sys module. What's the darwin ?
user avatar
  • 1,625
2 votes
0 answers
36 views

Unkillable process: what does this PS command output mean?

This process couldn't be killed. I tried kill -9 and it's still hanging on by the skin of it's teeth: What does ?E mean in the status column? I think I have a systemic problem with this on my Mac ...
user avatar
  • 121
1 vote
0 answers
91 views

weird Safari crash. virus? malicious software?

since about a week there is a strange behaviour in my girlfriend's MacBook Air (Retina, 13-inch, 2018). # uname -a Darwin Air 18.2.0 Darwin Kernel Version 18.2.0: Thu Dec 20 20:46:53 PST 2018; root:...
user avatar
  • 191
1 vote
1 answer
372 views

Installing GNU compilers on PureDarwin/Darwin?

I hope this is not off-topic, because there is no better place to ask this sort of questions on SO/SE. I have Downloaded and ran PureDarwin on QEMU using instructions here: Now ...
user avatar
  • 143
1 vote
1 answer
329 views

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

I cannot find xnu-6153.60.66~39 at https://opensource.apple.com/tarballs/xnu/ ! Does apple still open source the XNU Kernel?
user avatar
  • 153
2 votes
1 answer
4k views

How to make a bootable partition from scratch?

What I want to achieve is to make a new bootable partition on my MacBook's SSD, so it should be possible to press Option key on startup and choose this partition to boot from. Why do I need that? I ...
user avatar
0 votes
1 answer
205 views

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

How can one generate a list of Homebrew all formulas/packages sorted by "most recently updated" (by package provider)? I see no such sort/report at https://formulae.brew.sh/analytics. Maybe I missed ...
user avatar
  • 1,157
2 votes
1 answer
7k views

Do terminal TTYs for iOS and macOS exist?

Seeing that multiple TTYs exist on FreeBSD and Darwin, and they provide the core of macOS and iOS, how would I access such TTYs? And would they be multiple instances of GUIs or would they involve ...
user avatar
3 votes
1 answer
91 views

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

My goal is to retrieve the birth time of a file formatted to "2019-07-03" so I'm using the following which yields the following epoch time instead of the specific date format I requested: $ stat -f "%...
user avatar
0 votes
1 answer
353 views

Building webkit2-gtk with macports, errors sys/types not found

Trying to build webkit2 with macports, I get :info:build /usr/bin/cc -c -I/opt/local/include -fno-common -DPERL_DARWIN -mmacosx-version-min=10.14 -pipe -Os -isysroot/Applications/Xcode.app/Contents/...
user avatar
32 votes
2 answers
54k views

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

Linux has a command to retrieve detailed CPU information using cat /proc/cpuinfo. Using this command, users can get CPU and CPU's core information like below. processor : 0 vendor_id : ...
user avatar
  • 443
2 votes
1 answer
410 views

What is the purpose of speculative memory?

Recently, I've found out that Darwin has speculative memory metric. But, I don't know what the purpose of speculative memory. The memory metric can be checked using vm_stat command on terminal. Mach ...
user avatar
  • 443
12 votes
1 answer
2k views

Fake ethernet interfaces (feth / if_fake)? Anyone ever seen this? [closed]

I've been digging into Darwin source to try to find some way to create virtual Ethernet interfaces on Mac/Darwin without adding a kernel extension like tuntaposx. In doing so I've found something ...
user avatar
2 votes
1 answer
741 views

Can't get past login screen

I have a Mac that I bought from work during a hardware refresh, which was previously joined to a domain. Booted using cmd-R and reset the Admin password. Logged in, started deleting the old work ...
user avatar
  • 123
2 votes
1 answer
86 views

extract by terminal the Darwin version

I want to know how extract by terminal the Darwin version. https://en.wikipedia.org/wiki/MacOS_Sierra#Releases For macOS Sierra 10.12.3 is 16.4.0 for 10.12.6 is 16.7.0. Now, I want to create: --...
user avatar
1 vote
1 answer
725 views

Is /usr/local a per user folder?

Is /usr/local a per user folder? homebrew says /usr/local/bin /usr/local/etc /usr/local/include /usr/local/lib/pkgconfig This can happen if you "sudo make install" software that isn't managed by ...
user avatar
  • 2,220
2 votes
1 answer
1k views

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

After a few reckless uses of chomod (and some history I don't recall, apparently) I currently have the following ownership in my /usr/local: drwxr-xr-x 13 Rax admin Caskroom/ drwxr-xr-x 87 ...
user avatar
  • 10.6k
2 votes
0 answers
480 views

Kernel Extension Not Loaded

I built a self-made kernel extension (named KAuthTest.kext) and would like to test it out. So in a VM running macOS 10.12.3, I did the followings: disable SIP by running csrutil disable in recovery ...
user avatar
  • 241
2 votes
1 answer
2k views

df hide ifree, iused, 512 blocks (customize column format, don't show inode info)

My default df invocation prints way too much information for my needs. I can't find a way to hide this in the man page. It says use the -i flag to include it. But when I execute /usr/local/bin/df I ...
user avatar
10 votes
1 answer
7k views

How do I install sudo insults on Mac?

How do I install sudo insults† on Mac terminal? Apparently Apple has cleaned it up from Darwin, so adding Defaults insults through sudo visudo does not help. † The insulting things sudo command says ...
user avatar
  • 2,265
20 votes
1 answer
15k views

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

I have a script that I'm trying to port from Linux to Darwin/OS X. The Linux version currently depends on the watch command, which doesn't appear to be installed on Darwin/OS X by default. What's the ...
user avatar
  • 2,009
2 votes
2 answers
421 views

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

I want to emulate the command-line experience from OSX with a small netbook and practice my skills with the comfort of this small machine. Surely Apple offers actual Darwin Links for developers or ...
user avatar
2 votes
1 answer
418 views

DIY patching of OS X system binaries?

So since nobody on Apple.SE, Unix.SE or other sites was able to help me with my little WWAN problem, I've taken a look at the configd source and I was wondering... suppose I'd want to give patching ...
user avatar
  • 141
0 votes
1 answer
150 views

System Integrity Protection — Is it implemented in Darwin? Or is it OS X only?

The question should be clear from the title. If System Integrity Protection, aka Rootless, is part of Darwin, then I might be interested in inspecting how it is implemented. I would be grateful if ...
user avatar
  • 801
1 vote
2 answers
3k views

Where are g++ stl libraries in Darwin

I am trying to understand how some of the data structures are designed in stl. In ubuntu, I usually open the .h and .cpp files from /usr/local/include but in Darwin (kernel version 14.3.0) I am lost, ...
user avatar
1 vote
0 answers
417 views

updating two identical machines results in two different Darwin kernel versions reported

I have two identical Mac Minis and I updated each with all available updates. This caused both machines to go from OS X 10.9.2 to OS X 10.9.4. However, uname -a reports different kernel versions for ...
user avatar
2 votes
1 answer
19k views

How to download and install Darwin 13 OS in x86?

I've conducted a research on UNIX operating systems and found out that an experimental OS (Darwin) is used for development of the OSX; just like Fedora on Red Hat Enterprise Linux. Darwin OS has a ...
user avatar
4 votes
4 answers
3k views

Run GUI Applications from Terminal with root privilege

So it has been well documented that GUI applications (like gedit or textedit) should NOT be run with sudo. Ubuntu et al get gksu and gksudo (and the like) so question: what do WE (Mac users) get? ...
user avatar
9 votes
3 answers
9k views

Why is 'xattr' not working?

When I attempt to execute xattr in Terminal, I get Traceback (most recent call last): File "/usr/bin/xattr-2.7", line 33, in <module> import xattr ImportError: No module named xattr What'...
user avatar
  • 10.6k
4 votes
1 answer
1k views

How do I install Darwin 13 on OS X 10.9.1?

I've recently bought a MacBook with OS X 10.9 and I've just updated it to 10.9.1 (x86_64-apple-darwin10.8.0 64-bit). I'd like to install the version 13 of Darwin. I've done everything proposed by ...
user avatar
3 votes
2 answers
6k views

What are 'com.apple.access_ssh' and 'com.apple.access_screensharing'; can I delete them?

When I examine the list of users and groups on my machine (OSX 10.9) with id I get: uid=501(Rax) gid=20(staff) groups=20(staff) 103(Rax), 12(everyone), 61(localaccounts), ...
user avatar
  • 10.6k
9 votes
2 answers
32k views

How to install and use The open source Darwin OS

Is it possible to install and use the Darwin OS from Apples open source download area, and if so on what hardware would I need? I'm not even sure if the OS is complete, all I can tell is there are a ...
user avatar
  • 25.4k