Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [darwin]

Darwin is the name of the UNIX layer underlying Mac OS X and iOS. It contains elements from FreeBSD, NetBSD and if you install the optional Developer Tools, GNU user-land tools.

2
votes
0answers
74 views

No free space on system & locked out of recovery mode because firmware password, Linux to rescue? [closed]

This is a bit of a tragedy of circumstances. I was deleting all free space on my latest install of OS X with diskutil secureErase freespace 4 "/Volumes/Macintosh HD" and unfortunately it failed. ...
0
votes
2answers
132 views

mv raised error message but file was moved

I confess I am not an expert on unix commands but I moved a file to another directory and got an error message - yet the file was moved. Why is this message 'mv: rename to to /Users/billtubbs/Library/...
0
votes
1answer
125 views

Compression size is bigger than actual directory size

I am on trying to archive a directory (a Time Machine backup) using: tar -czf /Volumes/My\ Drive/archive.tar.gz my_directory The archive process is going on at the moment. I am monitoring the ...
5
votes
1answer
2k views

-bash: lstat: command not found

I'm using a Macbook Pro running El Capitan v 10.11.6. I am learning about symlinks, and in the man ln page, I found the following: A stat(2) on a symbolic link will return the linked-to file; an ...
3
votes
1answer
457 views

Different behavior in shell script vs in shell?

UPDATE: I have changed the grep $1 part to grep '$1' (while I was trying to mean grep "$1") in the script and this time I got the kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ....
1
vote
0answers
334 views

Deleting / renaming a network hardware port in OS X / Darwin

There's a problem with a device being listed twice with the same hardware port name which is causing a lot of trouble since the OS X configuration utilities (both GUI System Preferences and command-...
13
votes
2answers
12k views

How do I increase the maximum swap space on Mac OS X?

On Mac OS X Yosemite 10.10.5, when I try to run a calculation that needs to allocate and use 128 GB of memory (it is a command line program written in C), the kernel kills my process with extreme ...
1
vote
2answers
78 views

What versions of Darwin's libacl have the acl_get_file bug?

In some versions of Darwin's libacl, there's a bug in the acl_get_file function in which in spuriously returns null and sets errno to ENOENT when passed paths to valid files. There are a decent number ...
3
votes
1answer
162 views

Installation date and virtual status of the machine( For Darwin, FreeBSD and NetBSD)

How do I determine installation date (when the system was first booted) for Linux,Darwin, FreeBSD and NetBSD? Also, Is there any way to get the virtual status of the these machines (whether the ...
3
votes
1answer
567 views

Unix command equivalent for OS X Finder's Duplicate Exactly

What command can reproduce this function in bash? In Finder select File then press ⇧⌥ to make the command visible (⇧⌥⌘D). In AppleScript it's available as tell application "Finder" to duplicate ...
1
vote
1answer
145 views

Ubuntu K/FreeBSD

I was wondering if it is possible to alter Debian K/FreeBSD so it becomes Ubuntu? I know there are builds of Debian 7 running on FreeBSD, so would it be possible to get a working Ubuntu system with ...
8
votes
1answer
5k views

why is “timer_t” defined in “time.h” on Linux but not OS X

While I was reading a C source code files, I found this declarations. (This source code was written for linux system program. This is very important information) #include <time.h> #include <...
4
votes
2answers
335 views

How to find a file with partially specified path?

I am trying to find all my .txt and .csv files in my backup (Apple's time machine). The structure of the backup directories is like this: /machine name/date/Macintosh HD/ The above contains all ...
1
vote
3answers
1k views

GCC: set architecture to pass to linker

GNU C compiler passes the wrong architecture name to the linker. For example gcc helloworld.i throws the error ld: unknown/unsupported architecture name: -arch arm. After some experimenting with LD, ...
4
votes
1answer
215 views

OSX/Darwin ACL Format

In OS X, if you want to view the ACL information on a file, you can do so with the -e option of `ls. $ ls -lde app/cache drwxrwxr-x+ 7 alanstorm staff 238 Apr 1 10:02 app/cache 0: user:alanstorm ...
2
votes
2answers
204 views

In OS X Darwin, why can I interfere with text input across user sessions using cat?

OS X Darwin: Disrupting Terminal Sessions Across User Identities How, in Brief: with cat < /dev/ttys_, in Terminal. My Question This OS X 10.9.2 Darwin behaviour seems odd to me, and I would ...
2
votes
1answer
291 views

cgroups analogue in Darwin

Is there an analogue to cgroups in Darwin for preventing processes from escaping from the control / monitoring of its parent process by means of fork()? If yes, what is it? For some background, ...
15
votes
1answer
4k views

cat /dev/null > file.log does not truncate large file in Darwin

In the past, on linux systems, I've been able to truncate large, open log files (that is, a file that is being actively written to by a process) using cat /dev/null > file.log. However, on 10.9 (...
2
votes
0answers
321 views

Shorter timeout on I/O errors MacOS X

How do you set a shorter timeout value for read/write I/O errors on MacOSX? We tend to get a few semicrashed disks and want to rsync the contents to a secure location, but when the file subsystem ...
2
votes
2answers
113 views

Why does “User Contributed Perl Documentation” show up when I look for 'man' pages

When I man -f <some string> in addition to the expected Unix man pages, I get a bunch of odd looking entries that all have the header "User Contributed Perl Documentation". For example man -f ...
1
vote
0answers
182 views

How do the various configuration files determine MANPATH on Darwin?

On Darwin (12.2.0, OS X 10.8.2, bash 3.2.48(1)) my MANPATH appears to be determined by my PATH rather than by the various configuration files associated with man and the man path, /etc/manpaths, /etc/...
7
votes
1answer
1k views

What is Darwin's 'private' directory for?

Darwin has a private directory that I don't see in the Unix documentation I've found. Is that a Mac-specific directory? What is it for? Is it preserved between system upgrades?
1
vote
1answer
549 views

lpstat and localization under Mac OS X

How to force "lpstat" utility to show output messages in English under localized Mac OS X (version 10.6)? Example: lpstat -v Shows in Dutch: apparaat voor Samsung_SCX_4300_Series: usb://..... I ...
1
vote
0answers
124 views

Why does cd // work? [duplicate]

Possible Duplicate: unix, difference between path starting with '/' and '//' On my Mac OS X Lion box, with Bash: $ cd // $ pwd // $ ls Applications System cores ...
3
votes
4answers
14k views

Where can I find a download of Darwin from Apple?

Where can I find a ISO download of Darwin? I downloaded Darwin at one time (even after they stopped releasing the ISOs) off of Apple's website. Unfortunately, I have no idea where the link went. I had ...
2
votes
1answer
4k views

Installing Aqua interface on Darwin

Is is possible to install the Aqua GUI on top of Darwin? I was researching this about a year and a half ago and I don't remember much about what I found out. I also was not the main person in charge ...
20
votes
9answers
10k views

What features does Darwin have that other Unixes don't, or vice versa?

Does Darwin have any features that are specific to it? Do other Unixe(s) have features that Darwin lacks?