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 [unix]

UNIX is both the underlying code and architecture that makes up Mac OS X / iOS as well as a way of interacting with a Mac using the terminal app, X11 app, and various shells like `bash` or `zsh`. Whether you're logging into a mac using `ssh`, using `mdfind` or `tmutil` or using other open source software, you are doing things very much in common with other UNIX operating systems and toolsets such as Linux, GNU, and many, many others too numerous to list.

236
votes
3answers
154k views

What is the “rootless” feature in El Capitan, really?

I have just learned about the "Rootless" feature in El Capitan, and I am hearing things like "There is no root user", "Nothing can modify /System" and "The world will end because we can't get root". ...
161
votes
5answers
116k views

How to replace Mac OS X utilities with GNU core utilities?

I found there is some differences between the utility command I used on the mac OSX and linux. I want to make my experience united. How could I replace all my mac utilities with GNU utilities?
131
votes
10answers
275k views

How can I mount an ext4 file system on OS X?

Is there a safe, stable application for reading from and writing to ext4 file systems on Mac OS X? If not, what's the best way to access the contents of an ext4 file system on Mac OS&...
94
votes
9answers
74k views

Is there a way to convert audio files in Mac OS X or the command line without using iTunes?

Now, I know I can use iTunes to convert music. But it's quite a pain.. All I'm asking is: Is there anything built into OS X or UNIX for converting files? Right now I simply want to convert .mp4 to ....
81
votes
4answers
45k views

Linux' `ps f` (tree view) equivalent on OSX?

How can I get a tree view like the one below on OSX? vartec@some_server:~$ ps xf PID TTY STAT TIME COMMAND 11519 ? S 0:00 sshd: vartec@pts/0 11520 pts/0 Ss 0:00 \_ -bash ...
71
votes
9answers
255k views

Copying ISO file to USB drive in OS X?

I have tried to copy an ISO file to a USB drive. I am unable to do it with Disk Utility. How can I copy the ISO file to a USB drive? But I get the below. I have enough space in the 16GB USB drive for ...
59
votes
8answers
80k views

How to monitor file access for an OS X application?

I am looking for the OS X corespondent of FileMon, that was later included in ProcessMon. BTW, it is essential to be able to filter by process.
54
votes
2answers
76k views

Unix “ln -s” command not permitted in OSX El Capitan Beta3

I was installing nodejs for Symphony when I hit an "Operation not permitted" error. Anyone know why this happened? MacBook-Pro-de-XXX:~ XXX$ sudo ln -s /usr/local/bin/node /usr/bin/node ...
51
votes
6answers
75k views

File can't be moved by root on OS X

I tried to move a few files to a subfolder on OS X. One refused to move. It said Operation not permitted. I tried again as root: $ sudo mv file subfolder/ mv: rename file to subfolder/file: Operation ...
42
votes
7answers
67k views

As a developer, what will I miss on a Macbook Air? [MBA vs MBP] [closed]

I am an indie game developer. I am in love with the Mackbook Air [13 inch], and want to buy it. I was wondering: Will I miss the DVD drive, and upgradability if I am choosing a Macbook Air over ...
32
votes
2answers
33k views

What is standard for OS X filesystem? e.g. /opt/ vs. /usr/

What does and should go into /opt/ and what should/does go into /usr/? My understanding is that /usr/ used to be for user home directories, but since they exist in /Users/ - what is the purpose now? ...
30
votes
6answers
31k views

How to remove caps lock delay on Apple MacBook Pro aluminum keyboard when booted to Linux

Apple's MacBook Pro has a slight delay on the caps lock key. That is, the caps lock key has to be held down slightly longer than normal to register the key press required to engage the caps lock. ...
26
votes
3answers
23k views

How do I change the time format used by ls command line on osx?

I want to make ls display time in ISO format (military format). How can I change this behavior? On Linux I knew that I could force ls to display time in long format by usin --full-time but this doesn'...
25
votes
1answer
41k views

Is there a Mac OS X equivalent of the Linux iwconfig command?

I'm looking for a command line tool in Mac OS X that performs the equivalent of the iwconfig command in Linux. Example: kirkland@x220:~/src/byobu/byobu$ iwconfig wlan0 wlan0 IEEE 802.11abgn ...
20
votes
5answers
6k views

Is there a native terminal in OS X, without having to load the desktop, window manager, etc? [duplicate]

FOr example, in linux you can boot to a terminal, you don't have to load a desktop, window manager, etc. Is there something like this in Mac OS X? And like in Linux, is it possible to switch to one of ...
20
votes
2answers
3k views

Data Not Backed Up, Partition Type: FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF

I was trying to install Linux on my MacBook for class when I bricked my computer, which now in an unbootable state. I made my partition too small, so I was going to delete and create a larger one. ...
19
votes
2answers
6k views

How can I inspect the environment variables of a running process?

Is there some equivalent (CLI or GUI) to Linux's /proc/$PID/environ feature?
18
votes
8answers
996 views

Can I use an iPad effectively without a computer to dock it to?

I'm interested in buying an iPad, but I'm trying to understand what the implications are of not synchronise/docking it with a computer. I only have Linux (Ubuntu) machines these days; I have nothing ...
18
votes
2answers
32k views

Can I remotely access my Mac from Linux using screen sharing?

I like to access my Mac from work (Linux) and I wonder if it is possible without installing additional software like TeamViewer or ChickenVNC. I also noticed somewhere that it is possible to wake my ...
17
votes
4answers
17k views

Cross-Platform File System file sharing between MAC, WINDOWS, LINUX?

I've a laptop with triple boot, Yosemite, Windows 8.1, CentOS 7, and need a partition for sharing files between the 3 os's, i've been using exFAT, as it is supported by OSX & Windows but had some ...
17
votes
2answers
9k views

Is there a way to access a USB-serial port by the device id, not by the tty.* port?

On linux USB-serial devices create two aliases to its serial port: /dev/tty* and /dev/serial/by-id/<my_usb_device_id> Is there a way on OSX to identify a serial port by the USB device id? Both ...
16
votes
1answer
6k views

What is the modern equivalent of “ps aux” on macOS Sierra?

The BSD backend of MacOS has ps built in. The BSD General Commands Manual says that The biggest change is in the interpretation of the -u option, which now displays processes belonging to the ...
16
votes
3answers
28k views

iOS7 won't trust linux computer

iPhone 4S iOS7 Linux Mint When I plug my phone into my Linux machine I get the following message "Trust this computer?" No matter how many times I tap "Trust" the message comes up again. I do not ...
14
votes
5answers
14k views

Mac OS X - How to Symlink /home to /Users

For those of us who dabble in penguins and apples, it seems very worth while to be able to use /home paths either out of habbit or for those odd cases where the value may have been sync'd somewhere ...
14
votes
2answers
53k views

How do I mount Ext4 using OS X Fuse

I installed OS X Fuse on OS X 10.9.4 as outlined in http://osxdaily.com/2014/03/20/mount-ext-linux-file-system-mac/ Unfortunately it does not mount any of my Linux filesystems (on external HD or SD ...
14
votes
2answers
3k views

why does OSX add extra '._<filename>' when I tar a directory?

I'd just like to know why if I "tar -czf" a file/directory, osx adds a: ._ for each file? I see these when I untar in linux. Or when I work with the uncompressed project in eclipse as it doesn't ...
14
votes
1answer
6k views

How do I use my existing KeePass database on my new iPad without iTunes on a computer?

I'm a Linux user who bought an iPad. I'm also an Infosec pro who uses the KeePassX password manager. All my passwords are too long to type on the iPad - so I want to use my password manager on iPad. I ...
13
votes
5answers
3k views

Installing 20+ operating systems on Mac without any virtualization

For a scientific project I need to install these operating systems on my Mac Pro. The catch is... It has to run on a native hardware, no level 1 or 2 virtualization is allowed. Here is the list of ...
13
votes
1answer
11k views

Sudo keeps asking for password, despite that NOPASSWD already set

The following sudoers configuration used to work well in MacOS 10.8.5, several days ago I upgraded to Mavericks, NOPASSWD flag does not seem to work anymore: # User privilege specification root ...
13
votes
4answers
45k views

How to automatically mount NFS shares on OS X

I have a NFS server set up on my local LAN running on Arch Linux that I can connect to using OS X Mavericks by issuing the following command in the terminal: mount -t nfs -o resvport host:/srv/nfs4/...
13
votes
4answers
5k views

Can Touch ID unlock a personal SSH key?

Is it possible to use the Touch ID fingerprint reader to unlock my SSH key? I have a MacBook Pro with Touch Bar, and I have a traditional text passphrase for my SSH key right now. I have noticed ...
12
votes
3answers
2k views

How to create MacOS/*nix command explainer text like this using a tool?

┌── ln(1) link, ln -- make links │ ┌── Create a symbolic link. │ │ ┌── the optional path to the intended symlink │ │ │ if omitted, symlink is in ...
12
votes
9answers
752 views

Which command-line packages do you need? [closed]

I generally have one of Fink, MacPorts, Homebrew installed. Most often for a single, small, and trivial package. I've found that all my day-to-day software exists in OS X versions. So, which non-OS X ...
12
votes
6answers
8k views

Can I install Linux and Windows on a Mac to triple boot the hardware?

I'm quite the newbie at operating systems etc., so forgive me if my question is dumb. Is it possible to install Linux and Windows on a Mac, to run side by side with OS X? I'm about to start a new ...
12
votes
1answer
17k views

What is the difference between the sudo and su command?

What is the difference between the sudo and su command? Why does OS X handle these different than Linux?
12
votes
7answers
70k views

How do I make my 1.5 GHz PowerBook G4 boot from a USB stick?

I actually want to boot Linux but since that is not working I'm thinking some one might know on the Apple end. If there's a way to boot Mac from a USB stick, then booting another operating system ...
12
votes
1answer
10k views

Homebrew installed libraries, how do I use them?

I'm a bit confused. I've installed a bunch of libraries (e.g. vtk, gsl,...) that I need for a c++ project for school. I used homebrew to install them (luckily there were formulas available). My ...
12
votes
1answer
12k views

Does Windows or Linux have any tools for accessing a FileVault2 encrypted drive's contents?

I'm looking to mount (and access files on) my FileVault2 encrypted drive on a non-OS X box, and am wondering if anyone has done this with Windows or Linux.
11
votes
5answers
32k views

How to select text with touchpad without pressing the “hard” key?

Now on OS X, when I want to select some text, I have to press the "hard" key on touchpad with thumb and drag through the text with another finger on touchpad. With linux on the same macbook pro, I ...
11
votes
1answer
23k views

How to create a bootable Ubuntu USB stick using OS X 10.10.2

I have downloaded the ubuntu-14.04.2-desktop-amd64.iso. How do I create a bootable Ubuntu USB stick using my Macbook Air which is running OS X 10.10.2? I cannot create a bootable CD, since the Air is ...
11
votes
3answers
23k views

Editing System Preferences via Terminal

Am looking to edit system preferences settings via the command line but cannot for the life of me find the correct names of variables. In Login Options under Users & Groups, I would like to be ...
11
votes
1answer
2k views

gpg2: Warning: using insecure memory!

As of today, whenever I use gpg2 (installed via Homebrew) on my Mac (10.12.1), I now see the following warning: Warning: using insecure memory! For what it's worth, I'm seeing this same behavior on ...
11
votes
1answer
755 views

How does iOS delete a file technically and can it potentially be undeleted?

We have an interesting discussion here about file deletion on iOS devices. The question was: if I delete a file using NSFileManager, what's happening under the hood? My understanding is that deletion ...
10
votes
5answers
19k views

How do I run a GUI app via SSH?

I'm used to working on Unix/Linux and recently moved to Mac. In used to be able to do this: derick@linux1:~$ ssh -X linux2 derick@linux2's password: derick@linux2:~$ xclock I've install X11 from ...
10
votes
4answers
30k views

How do I search all hidden files that are in hidden folders using Terminal?

I need to find some configs buried in some hidden folders and can't recall where they are to navigate to them directly Cmd+Shift+G. I did a sudo find -name Foo* (slow), but none of the returned files ...
10
votes
7answers
13k views

How to prevent the application launched in Terminal from undesirably exiting?

I launch applications from the Terminal with commands like this one : /Applications/Mail.app/Contents/MacOS/Mail & The important part is the &. For Unix / Linux / Solaris : I have learned ...
10
votes
3answers
13k views

Is it possible to ditch OS X and install BSD on my 3rd Gen Macbook Pro

I would like to run BSD to take full advantage of the Mac hardware. I'm unable to locate a version of BSD that runs on any MacBook Pro. I'd like a native install, replacing OS X entirely and not ...
10
votes
6answers
69k views

How do I delete a BootCamp partition using Terminal's diskutil?

For some reason, the BootCamp Assistant app won't let me delete my BootCamp partition. How can I do so using Terminal and the diskutil terminal app?
10
votes
1answer
10k views

How to mount ext4 partition on OS X 10.8.2?

I'm new to OS X, I was using Ubuntu till now. All my data are stored on an external drive formated as ext4 system file. Is there any other way to acces this data than installing Virtual Box? I'm ...
10
votes
2answers
28k views

How to create a USB installer for multiple OS on an OS X system?

I would like to be able to create a disk image (that I can transfer via Disk Utility.app to a large USB storage thumb drive) which is a multiboot installer for provisioning various operating systems ...