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". ...
9
votes
2answers
23k views

Installing Ubuntu on Mac with macOS and Windows already installed

I have a dual-boot MacBook Pro late 2013 with macOS Sierra and Windows 10 (BOOTCAMP) already installed. I want to install Ubuntu as a third OS. Is there any (easy) way to do it? > Disk Partitions:...
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. ...
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&...
8
votes
2answers
11k views

Triple boot macOS High Sierra, Ubuntu, and Windows without rEFInd

I currently have three OSes installed on my 2017 MacBook Air: macOS, Ubuntu, and Windows 10. I couldn't boot into Ubuntu without rEFInd, but I strongly prefer the default boot manager, because I want ...
5
votes
2answers
12k views

Remove Ubuntu and grow Mac partition

I'm new to the whole Mac world, and the first thing I did when I got my MacBook Air 2015 was I installed Ubuntu, but have regretted it now and want to remove it and get my space back into the Mac ...
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?
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? ...
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 ...
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. ...
9
votes
6answers
12k views

Replacing OS X with Windows/Linux on aging Mac

I have an old 2008 13" Macbook4,1 model (not pro) running Snow Leopard with 4GB of RAM and 160GB of HDD. It is adequate for my needs at the moment but the OS is no longer being supported by Apple (NTP ...
4
votes
2answers
4k views

Installing Ubuntu without DVD or Flash Drive

I'm trying to give new life to my old white late-2006 MacBook by installing a new OS (dual boot), but I am having problems as my DVD/CD drive is broken and I just can't get my Mac to boot from my ...
6
votes
1answer
2k views

How can I create a bootable USB stick with Linux and FAT32 from macOS

I want to put 2 partitions on my USB stick: first one (so Windows can see it) with FAT32 (so also macOS can write to it) and a second one, bootable with system-rescue-cd on it. I started looking how ...
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 ...
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/...
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.
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
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 ...
9
votes
1answer
790 views

Open applications in the background in OS X, I don't want my focus taken from me. Respect my Focus!

I'm running El Capitan 10.11.4 on a 2014 Mac Mini. I'm often running 10-14 apps at one time as I work writing reports, word/excel/Adobe/Safari/iTunes/calendar/etc... Frequently I want to open ...
2
votes
1answer
3k views

Create bootable USB drive from Linux ISO

I'd like to take a Linux ISO (e.g., CentOS, Ubuntu), and create a bootable USB drive. (It will be used for booting on a stock PC, not on the Mac). How do I go about creating such a drive using a Mac?
1
vote
1answer
3k views

Reclaim hard drive space from deleted partition and reclaim Apple bootloader

I had my system dual-booted with Ubuntu 14.04. However, I found myself not using it enough to warrant the storage space. I deleted the ubuntu partition and the ubuntu swap partition. However, am now ...
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 ...
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 ...
9
votes
9answers
51k views

How can I transfer large files from Linux to iPad over a cable or wifi?

I am looking for a way to transfer large files to the iPad without using iTunes or pushing to and pulling from a remote server. I run an Ubuntu laptop as my only OS at the moment and want to be able ...
6
votes
1answer
2k views

Where should shell tools be installed?

Are there Apple guidelines for where user shell tools in Mountain Lion should be installed? Some (e.g. TeX, or Apple's Git) end up in /usr, and others (e.g. X11) seem to end up in /opt (sometimes with ...
9
votes
5answers
28k views

How to find all files that are larger than 1GB on the Mac HD?

It seems that either one of these commands can be used: sudo find / -size +1G sudo find / -type f -size +1G But when it gets to /Volumes, it actually look at all the back up files by Time Machine in ...
3
votes
1answer
2k views

Triple Boot: “Missing operating system” on Windows 7 partition after Ubuntu installation

I tried to install Ubuntu (without rEFInd) and followed this article on how to achieve that on a dual boot Mac (macOS and Windows): Installing Ubuntu on Mac with macOS and Windows already installed ...
3
votes
5answers
17k views

How to erase and reformat SD card to ext3 on my macbook to prepare it for my raspberry pi

I'm trying to reformat my 32G SD card to prepare it for my raspberry pi. My GUI program on my mac does not allow me to format it to ext3 which is what i'm told to reformat it to for my raspberry pi. ...
2
votes
3answers
8k views

Can I use Linux in a 2011 Macbook Pro with a defective discrete GPU?

I have an early 15" 2011 Macbook Pro that is affected by the defective discrete GPU. I know there are workarounds in OSX to force the use of the integrated Intel GPU, or disable the drivers for the ...
9
votes
4answers
30k views

How to install Ubuntu on a 1st gen Apple TV?

I want to install Ubuntu on my 1st gen Apple TV. How should I go about doing this, using as little third-party software as possible?
5
votes
2answers
593 views

Mac OS X UNIX-oriented Tutorial

Is there any Mac OS X tutorial/book that covers the UNIX part of this operating system? Topics like: Managing daemons from the command-line Package management Install/Remove dmg's from the command-...
0
votes
1answer
891 views

Kali Linux Dual Boot - Wifi not working

I am struggling to find a detailed guide on how to troubleshoot wifi once Kali Linux 2.0 has been installed. I dual booted on my MacBook Air (El Capitan) Kali Linux 2.0, and as I have been warned, ...
-3
votes
3answers
775 views

How to reinstall macOS Sierra after formatting by Ubuntu

I recently experienced a problem with my macOS Sierra that forced me to reinstall it. However the internet connection was bad, so I ended up installing Ubuntu 17 from USB instead. I’ve now ...
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 ...
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
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 ...
9
votes
7answers
27k views

Is there a beginners guide to Unix from the OS X point of view?

I'm hoping to build on my embarrassingly-limited knowledge of the command line, and I know there are a ton of great resources out there. I'm wondering if there are any books or other resources that ...
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 ...
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?
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 ...
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 ...
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?
8
votes
2answers
3k views

Triple Boot Lion+Win7+Linux

I have a challenge for you. I've been doing lots of research, and I've found quite a few questions here left unanswered. I know this is possible, I'm interested in hearing from people who have ...
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 ...
7
votes
2answers
24k views

How to share directory over NFS from Mac? (w/o macOS Server app)

First of all, I'm happy to pay the $19.99 for the Mac OS Server app from the app store, so that's no problem, it's just that at the moment I only have one specific need - NFS sharing between my macOS ...
6
votes
1answer
4k views

Best keyboard mapping approach to make a Mac work like Ubuntu?

Through the day I work on both a Mac and Ubuntu. What's the best option for mapping the Mac keyboard (an external, non-Mac one) to Ubuntu style keys - when using the Mac (OS X). Basically I want to ...
6
votes
6answers
43k views

How to properly install Kali Linux on MacBook Air (dual-boot with El Capitan)

I updated to El Capitan yesterday (on MacBook Air 2014). I then decided to install Kali Linux 2.0, and boy it's been one problem after another, so far nothing has gone the way it's supposed to. ...
2
votes
1answer
17k 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 ...
1
vote
1answer
4k views

Make and create Live USB Linux for Mac? How?

I'm wanting to create a live usb linux so I can easily access it everytime when I need it without taking up any space. But with other sources, they say to rEFInd and I did so, however when restarting ...