Questions about the command line and other Unix-like aspects of Mac OS X, including the Mach/BSD-based kernel and FreeBSD-based userland. You may want to consider using Ask Different instead.

learn more… | top users | synonyms (1)

-1
votes
0answers
9 views

About the Terminal in mac OSX

I'm using OSX Lion, and I wanted to upgrade my OSX lion to OSX Yosemite. I wanted to have a clean install of my OSX. I was gonna make a bootable USB, and I got stuck at the sudo in terminal. it says ...
2
votes
2answers
67 views

Output of stat on OSX

I want to use the stat command to get information on a file. I did this: Josephs-MacBook-Pro:Desktop Joseph$ echo 'hello' > info.txt Josephs-MacBook-Pro:Desktop Joseph$ stat info.txt 16777220 ...
1
vote
0answers
7 views

X forwarding from a mac to Linux fails

I have been having problems recently while trying to ssh into linux servers (Ubuntu 14.04) from my mac (OSX Yosemite 10.10). This used to work fine until my latest update, where I systematically get a ...
2
votes
0answers
21 views

Is there a /dev/pts alternative on Mac OSX?

I'm attempting to determine how many terminal windows are open, as described in this Q&A answer. However there doesn't seem to be a /dev/pts on Mac OSX. Is there an alternative to this?
1
vote
0answers
12 views

Tmux hangs on first start

I am running Tmux on a OSX (brewed tmux), and everytime I boot my computer, the first time I start tmux, it hangs. Doing a CTRL + T to check it's SIGINFO, gives me "waiting..". To fix this, I need to ...
4
votes
1answer
106 views

Untar a specifc folder within tar.gz

How do I untar/uncompress a specific folder within a tar.gz using the terminal/commandline (Ubuntu 14.04 (Trusty Tahr))? Precise: -file.tar.gz -- folder1 -- folder2 How to extract... ... ...
4
votes
1answer
4k views

find & sed (search and replace)

I'm using the following command on my mac: $find . -name “*.java” -exec sed -i ’s/foo/bar/g’ {} \; and it seems to have no effect. I have two files in the directory that end in .java, which both ...
0
votes
0answers
13 views

I overwrote OSX with Linux by accident [migrated]

So here is what happened. I installed Ubuntu onto a flashdrive hoping to be able to dual boot Linux/OSX. I burned Ubuntu onto the flash drive on my desktop PC (windows 8.1) with universal USB ...
0
votes
1answer
482 views

VPN Setup Errors

I'm trying to install a VPN on one of our servers for use within my campus so that we can play some games, but I appear to be getting errors when I try to connect, as shown below. Not quite sure about ...
2
votes
0answers
26 views

“login -qf” as root results in “Login incorrect” error

I'm trying to install pow on an OS X machine.* Some of pow's components have to run as root, so part of the setup process involves running an installation script with sudo. The problem is, this setup ...
7
votes
4answers
5k views

Mac OS X: dircolors not found?

I just switched to a Macbook Air. I installed zsh using homebrew, but when I use some of the code that I (originally had) in my .zshrc, I get an error saying that .dircolors was not found. Below is ...
2
votes
1answer
29 views

Can't use `od` command with directories

I'm trying to use the od command in a directory in OSX but it doesn't proceed and it results in the error message: od: .: Is a directory Could you please help me with it or any equivalent command? ...
12
votes
4answers
13k views

How to persist ulimit settings in OSX Mavericks?

Before Mavericks, one could use /etc/launchd.conf to persist ulimit settings, for example: limit maxfiles 16384 unlimited limit maxproc 16384 unlimited It no longer works in Mavericks. What is the ...
1
vote
1answer
240 views

Create bootable hfs+ partition for macbook

I've installed Debian testing on a Macbook Pro (mid 2014) without keeping OS X on the internal SSD. I've used the following GPT partition layout: HFS+ EFI on /boot/efi BTRFS on / SWAP on swap I've ...
2
votes
1answer
15 views

How to make PATH variable exports on MacOSX persistent?

I do export http_proxy=http://proxy:8080 export ALL_PROXY=$http_proxy on my Mac. Brew for instance relies on these settings. How can I make these settings stick between power cycles? Is this the ...
1
vote
6answers
125 views

How to convert dashed string to spaces and caps?

Given the string foo-bar, what is a good way to convert it to Foo Bar? Using Bash, OSX.
0
votes
1answer
25 views

Installing PHP on OS X. Syntax errors?

When installing OS X on Yosemite with curl -s http://php-osx.liip.ch/install.sh | bash -s 5.6, I get the following: **** [WARNING] Detected OS X Yosemite 10.10. As this is quite new, there may be ...
0
votes
0answers
46 views

ssh: connect to host 104.131.76.121 port 10222: Connection refused

I have been trying to solve this problem for quite some time. The error is in the title. The server is a digitalocean ubuntu 14.04. It was working before hand. I changed the ServerAliveInterval on ...
0
votes
1answer
249 views

How can I continue past this point in installing Solaris 11 under VMware Fusion 5.0.4 on Mavericks?

I have a Mac running VMware Fusion 5.0.4 on OSX Mavericks, and I do not seem to be able to get past a certain point on installation on either of two installers I tried. A (text) window comes up, ...
0
votes
0answers
16 views

Why do I get a “preauth required” error when I set “require-preauth = false” in krb5.conf?

On an OS X machine, I'm trying to get a kerb ticket on my organization's kerberos realm. I grabbed a copy of krb5.conf from a Linux machine to make sure my kerberos configuration was correct. I tried ...
1
vote
1answer
34 views

MacOS X Mavericks running VirtualBox cannot communicate with Linux VM

I have a MacOS X Mavericks host running Vagrant using VirtualBox as a provider. I have experienced several times that with different VMs (particularly Ubuntu Linux VMs) after the first time the VM is ...
4
votes
10answers
10k views

Install rEFInd on OS X 10.10 Yosemite

I want to dual boot my macbook with Arch Linux and thus tried to install rEFInd using the install script, however, after install rEFInd doesn't seem to start at all? Anyone experienced the same issue ...
2
votes
2answers
828 views

Quickly check whether many network hosts are up-and-running

Objective: check if a host is up-and-running on the network, with a method that can be efficiently parallelized over many hosts. Emphasis on a QUICK turnaround of the check. Reason to emphasise ...
0
votes
0answers
17 views

Why are some processes “killable” by pkill but not killall?

I had over 20 instances of httpd (apache) processes running, so I decided to shutdown these. Normally I use killall, But when I typed killall httpd it just said: No matching processes belonging to ...
0
votes
1answer
43 views

Is hardware helping reducing crashes of OS X? [closed]

I am taking an OS course this semester, and we mentioned that device drivers can cause about 85% of crashes(for Windows). My understanding is that: since many personal computers are configured with a ...
1
vote
2answers
35 views

SSH Tunneling Through a Firewall to a Cluster

I work at a university but I often work remotely. There is a cluster computer at the university that I need to be able to interact with, but its behind a firewall. Let's call the firewall F and the ...
2
votes
1answer
985 views

Transferring Files SSH SCP Error Message: 'Stdin: is not a tty'

I am using a Macbook SSH terminal and generated RSA key pairs and uploaded remote id_rsa.pub with approved permissions. I can connect with remote Apache web server. I can create, open, move, modify ...
1
vote
1answer
22 views

Symlink all files in a directory with the entire directory tree

Right now I use this ln -s /dir/* /dir2/ Which will symlink everything, but I have to go inside the dir and make a new directory because the folders are also symlinked (this is expected). So here ...
1
vote
1answer
30 views

Compare directory trees regarding file name (and size and date)

I want to check the results of a restore from backup. This is, because TimeMachine on MacOS gives me some weird errors and warnings and I want to make sure, everything is in its place again after ...
1
vote
2answers
52 views

How to execute Mach-O 32-bit C++ program on Linux?

I want to execute a program (which I know was written in C++), but I get this error: zsh: exec format error: ./myProgram Output of file myProgram: myProgram: Mach-O i386 executable My system is ...
0
votes
0answers
14 views

How to troubleshoot: “X11 connection uses different authentication protocol.”

I start an ssh session with localbox % ssh -vvv -Y remotebox 2>debug_ssh_log ...which succeeds. Then I try to run xlogo on remotebox, but the command fails immediately, and the following lines ...
0
votes
1answer
41 views

.bash_history keeps truncating

My .bash_history keeps truncating even though I set: export HISTSIZE= export HISTFILESIZE= On my .bash_profile. Im not sure when it happens but it might happen when I logout or shut down my ...
0
votes
1answer
28 views

Software installation trouble with Homebrew

I have previously custom installed Python and Homebrew on my OS X 10.9.5 system. I am now trying to install CMake and I am running into various errors such as: cd: /usr/local/src: No such file or ...
0
votes
1answer
149 views

Private VPN compression for faster internet

Background: I'm a student, and currently the WiFi connection at my school is very slow (dead slow). I have an 8Gb 4G data-plan, but even with that, I'm running short at the end of the month. I have ...
2
votes
1answer
67 views

find and sed (find and replace) causes illegal byte sequence on Mac OS X

I am attempting to perform a find and replace of underscores to dots in a directory for certain filetypes only (.mkv, .mp4, .avi). This is the code that I am using (I'm on Mac OS X 10.9): find . \( ...
1
vote
2answers
649 views

Linux guest VM on mac host - Keyboard

I use a Mac as a development box, but am slowly transitioning to Linux. So I am spending the majority of my time in the Linux guest VM while working. But I still spend a fair amount of time in Mac ...
2
votes
2answers
6k views

Booting Ubuntu from usb on a Mac

I have a Macbook pro (late 2009) running OSX 10.6.8. I want to partition a flash drive and install my Ubuntu iso image onto it. Then I want to boot up from it by (restarting my computer and) holding ...
3
votes
1answer
2k views

Sound volume control does not work in Ubuntu

My sound volume control does not work when I'm logged in with my regular user, though the sound works correctly. What's weirder is that the sound control works when I'm logged in as guest. With my ...
11
votes
3answers
3k views

Fix or alternative for mktemp in OS X

I'm looking at a bash script someone else wrote that uses mktemp: TEMP=`mktemp --directory` However, this line does not work on my machine (OS X 10.6). How would I fix this line so that it is ...
0
votes
1answer
156 views

Yosemite + Fusion 7.0.1 now gets “Could not open /dev/vmmon: No such file or directory.” and will not start any VM

I've been on Yosemite on this machine since it hit released, and on Fusion 7 since it released. Now on 10.10.1 and 7.0.1 respectively. On one machine ...
1
vote
1answer
28 views

Updating a bunch of Macs via SSH. Could use some help

all. I'm working on a script that'll be running from our Mac server, and it will (hopefully) update all of our Macs via Munki (repo is on the same server) and the built-in softwareupdate command. ...
2
votes
1answer
369 views

Sending raw video stream over network to an encoder

I'm trying to build a setup using OS X machines for streaming live video. Currently I use Flash Media Live Encoder on the same machine that is handling the video input unfortunately because FMLE uses ...
0
votes
0answers
902 views

Why is my Mac, upgraded from Mavericks to Yosemite, no longer giving VMware Fusion needed resources?

I have a Mac upgraded from Mavericks to Yosemite. When I tried to run VMware Fusion, I got an error stating: Could not open /dev/vmmon: No such file or directory. Please make sure that the kernel ...
1
vote
1answer
52 views

log rotation fails for dnsmasq on osx using newsyslog

I am running dnsmasq on OSX. I am also using newsyslog to rotate log files. Here is the /etc/newsyslog.d/dnsmasq.conf # logfilename [owner:group] mode count size when flags ...
15
votes
3answers
592 views

Why don't shell builtins have proper man pages?

All shell builtins share the same manual page: BUILTIN(1) BSD General Commands Manual BUILTIN(1) NAME builtin, ! etc. Then there is a little text describing ...
2
votes
0answers
62 views

Accidentally deleted /var folder

I accidentally moved my /var folder to trash and now unable to login to Mac. The only solution I found until now is to recover OS X. I have tried to move /var back to /private folder in single user ...
27
votes
5answers
9k views

Is Mac OS X UNIX?

I have this argument recently saying Mac OS X was not UNIX, but Unix-like. I know there is a Single Unix Specification and those spec complaint could use the UNIX trade mark. Is Mac OS X an UNIX ...
56
votes
10answers
30k views

How do I know if dd is still working?

I've not used dd all that much, but so far it's not failed me yet. Right now, I've had a dd going for over 12 hours - I'm writing an image back to the disk it came from - and I'm getting a little ...
2
votes
2answers
152 views

Negative arguments to head / tail

Variants of this question have certainly been asked several times in different places, but I am trying to remove the last M lines from a file without luck. The second most voted answer in this ...
1
vote
1answer
29 views

Unable to view Applications Directory Content in Terminal

Not sure what I'm missing here, but when I try to list the contents of the Applications directory from the Terminal it produces a directory with a couple .dmg files and none of the actual application ...