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)

0
votes
0answers
5 views

How can I get my Apache server to point to the correct location?

I am trying to point my apache server to use various packages I have in my Eclipse workspace which is not located in the default Apache server directory. So far, no luck, all I get is Not Found error. ...
0
votes
0answers
19 views

VirtualHost configuration not working

I followed this article, mixed with some other research, in an effort to get VirtualHost configuration up and running on my Mac. However, for some reason when I navigate to my local.site.rocks URL it ...
2
votes
1answer
22 views

Move thousands of jpg files into daily directories based on the files EXIF creation date

I have thousands of jpg's and mp4's that need sorting into a directory structure which name is based on the date the picture was created. Preferably from the EXIF date as the files modified date might ...
0
votes
0answers
5 views

Mount FileVault encrypted drive in OS X 10.9 in Recovery Mode without unlocking it; Passware brute-force

I encrypted my internal hard drive with FileVault a while ago on Lion such that it prompts for the disk password when I restart the computer and recently upgraded to Mavericks on my MBPro Retina. It ...
1
vote
3answers
48 views

Remove patterns from string using bash

I'm trying to remove some patterns from a file input string (parsing file line by line). Here is a sample string: 1: (10/17 12:49:31.175) - CONSTANT ID1 - CONSTANT ID2: RAW DATA OUT > ...
0
votes
0answers
38 views

libfreenect2 - libusb -99 error

I need some help, when I am running protonect, the IR blaster go on but no frame is captured. It's some sort of libusb error. Running on Mavericks, with an express card adapter with "Nec µPD720202" ...
47
votes
2answers
3k views

Shebang starting with `//`?

I'm confused about following script (hello.go). //usr/bin/env go run $0 $@ ; exit package main import "fmt" func main() { fmt.Printf("hello, world\n") } It can execute. (on MacOS X 10.9.5) $ ...
5
votes
1answer
50 views

How do folder name localizations work?

In Mac OS X, there are directories like Desktop, Users and Library. On localized systems, these would be named Skrivbord, Användare and Bibliotek (Swedish) But when I am in the terminal I can't ...
0
votes
1answer
42 views

Kill unresponsive process by name but preserve responsive processes

For some reason, I end up with a fair few Google Chrome Helper processes which stop responding, hogging CPU resources. Usually I just run killall Google\ Chrome\ Helper, however this kills all, ...
2
votes
1answer
66 views

How to fix invalid map node linkage?

My drive is formated to hfs+ and it is not clean. In example when I'm trying to mount the drive by mount -f -o rw, dmesg displays the error: hfs: Filesystem was not cleanly unmounted, running ...
1
vote
0answers
26 views

Get path of currently marked file

Im running OS X and I'm wondering if there is a way to get the path of the currently marked file in Finder. Like, can UNIX determine what file i have clicked on? Reasons for this would be for ...
1
vote
1answer
16 views

Command line tool for making icon files?

Is there any command line tool for making icns files to use for OS X apps? I am aware of icontool but it doesn't do what i want. It converts iconset files into and icns file. What i want it to do is: ...
0
votes
1answer
18 views

'last' does not include logs for few last days

When I execute 'last', I do not see logs from past 6 days. What could be the case? Is it possible to clear these logs? I'm on OS X Mavericks.
2
votes
0answers
34 views

Open a program (VLC) and move it to the foreground

On a Mac, specifically, when I use the VLC command line to open a video file, it opens in the background by default. How can I instead move it to the foreground whenever I run the command to open a ...
0
votes
4answers
62 views

grep for files and open the resultant matches

I'm trying to open all files based on some return values from grep in the command line. I know that I can use the -l option to only return filenames, but I would like to combine this somehow with ...
2
votes
0answers
14 views

OS X: destroyfvkeyonstandby question

This is a very OS X specific question. I don't know if it applies to the rest of the Unix family. Sorry if this isn't the best forum for it, but the users here appear to be more knowledgeable in ...
0
votes
2answers
36 views

Automatic extraction of zip files like in osx

In Mac OSX if you have downloaded a zip/gz/bz2 file, and you double click it in Finder, then the archive is automatically extracted for you in a subfolder, which I find very nice. I am wondering if ...
3
votes
1answer
76 views

Differences between dd in Mac OS X and Linux

When using Linux (Debian), I often use dd to copy a disk image to an SD card. I have written a script that throws an error if the device file specified in the "of" option is too large. This keeps me ...
0
votes
1answer
29 views

Terminal access permission denied, but GUI access okay. Why?

In OS X, as a limited user I used Terminal to su - [admin's name] and tried to move some files that were in the administrator's public drop box directory into /usr/bin. Couldn't do it. Permission ...
2
votes
1answer
46 views

pf blocks all in/out traffic instead of just the one port I wanted to block

I need to block one incoming port with pf. I'm new to pf, and I can't figure out what I'm doing wrong here. Here is my entire rule file, made to block incoming port 22: set block-policy drop pass in ...
0
votes
0answers
21 views

I Modified my PATH when installing git. What is the default path on Mac?

When I was troubleshooting a git install, I did a few things. I think that I modified my default path. Echo $path returns ...
2
votes
1answer
41 views

User permission issues in OS X

[OS X 10.9.4] Three questions, but they're really all part of the same thing. Machine has one administrative user and one limited user (in addition to built-in root and a guest user). I'm really the ...
1
vote
2answers
29 views

How can I prefer another bin file?

I have installed both Wine via Homebrew and via WineBottler. I have multiple bin files named wine. When I run for example wine morrowind It starts it with the one in ...
0
votes
1answer
55 views

External Hard Drive Issue on mac

After the cd /Volumes command when I type ls it shows me my hard drive name twice, with different permissions. After that when I try to use mkdir to create a directory in the external hard drive I'm ...
0
votes
2answers
33 views

Cant use hombrew because of “bad cpu type one executable”

Here is my exact error message Error: Bad CPU type in executable - otool I can't run stuff like brew install wine Any help please? I'm running OS X.
0
votes
0answers
22 views

How do I uninstall homebrew without uninstalling software installed via homebrew?

I don't like messing with my /usr and similar folders. I'm going to install one application via homebrew then I want to uninstall homebrew without uninstalling that application. In this case - wine. ...
1
vote
1answer
35 views

How do I change emacs application name from “Emacs” to something else in OSX?

I run multiple emacs instances with open -n -a Emacs.app command. The problem is that it's hard to distinguish between them when you switch with Cmd+Tab, because they're all named "Emacs" there. How ...
1
vote
3answers
90 views

shell script to run on boot on Mac OS X does not run all commands

On OS X, I am trying to use lingon to run a shell script upon booting. I have a file ~/desktop/_admin/boot/bootdocker.sh: #!/bin/bash boot2docker up export DOCKER_HOST=tcp://192.177.59.103:2475 My ...
1
vote
1answer
365 views

sudo service command not found when installing mongodb

I am currently on OS/X using macbook. I want to stop the instance of mongodb service running. Hence I tried: > sudo service mongodb stop sudo: service: command not found After looking up on ...
0
votes
1answer
54 views

How to “bless” a disc without access to OSX?

I have a MacBook Pro. The original harddrive died and has been replaced. I've installed Fedora20 on the new drive. The new drive was never "blessed" and thus boot takes 30 seconds longer than it ...
-1
votes
1answer
34 views

In Mac Os, what is .DS_store?

In each folder I find a hidden file called .DS_store? What is this exactly?
0
votes
0answers
58 views

Private VPN compression for faster internet

I've posted this same question on StackOverflow as well, but figured out I may get more Debian-specific answers here Background: I'm a student, and currently the WiFi connection at my school is very ...
0
votes
1answer
48 views

Mounting Linux root fs NFS share on OS X?

I am attempting to share the root filesystem (/) of a CentOS 6.5 virtual machine to my OS X host system. While this should be relatively simple process, I'm hitting some kind of wall. Presently my ...
0
votes
0answers
35 views

Mac Terminal: Scroll up and down in screen mode

I am in screen mode and I am outputing results that are too long to read through even using Ctrl+a + [ + Up / Down Arrow Key. Is there a way that I can scroll up and down using the mouse in screen ...
2
votes
0answers
17 views

How to identify process accesing usb port (scale)?

I'd like to identify through terminal which processes are using the scale connected to my mac, I need to kill those processes or clean the port to be used only by my app. Thanks a lot in advance.
0
votes
1answer
239 views

Installing Xmgrace on Mac problem

Hi I'm totally new to UNIX, I use my console for 2 months only and only know the very basic commands... I have worked on a machine previously and have been using the xmgrace command to make some ...
1
vote
1answer
29 views

How are files or chunks delimited on disk?

I'm trying to recover some lost files by grep-scanning a hard disk. (The OS is Darwin 11.4.2. The file system is HFS.) How can I determine where a file (or contiguous chunk thereof) begins and ends ...
1
vote
1answer
32 views

Global variable for every script

I want to declare a variable in such way that every script can access and alter its value. I have written a script that set the value of a variable called flag on exit and I am using a crontab entry ...
0
votes
1answer
44 views

I cannot enter the vertical line character in OSX terminal

I'm using a Mac and I'm piping some data from curl to tar and when I went to hit the | in the terminal I got the o with an umlaut. It totally works fine, as the unicode character still comes up as ...
1
vote
1answer
31 views

tmux blocks certain things on my Mac

I really like tmux and use it often so I set the following in my .zprofile: [[ $TERM != "screen" ]] && exec tmux so when I open a new window, tmux will be there for me. However, there are ...
1
vote
0answers
52 views

Re-access NFS volume from OS X Mavericks client after server reboot?

My home server, running FreeBSD 10-RELEASE p7, exports NFS volumes to my MacBook Pro, running current OS X Mavericks. The MacBook mounts these via automount as /net/servername/volume without any ...
0
votes
0answers
55 views

xrdp - Cannot connect from OSX

I just installed Centos 6.5 and put xrdp on it. I set up my iptables to allow it, and I can connect fine (both over local network and over the internet) from Windows 7, iOS, Android (using the ...
3
votes
3answers
186 views

equivalent of `grep -a /dev/sda1` on Darwin?

I want to run something like % sudo grep -i -a 'some-string' <drive device> On Linux, <drive device> would be something like /dev/sda1. How can I find the equivalent on Darwin? (In ...
1
vote
0answers
85 views

Unable to boot into Mac OS after installing Fedora[Dual Boot]

I installed Fedora on my Mac and now when I boot, it says "booting in insecure mode" an then see a typical Linux "choose what to boot" screen. The List goes like: Fedora Fedora Recovery Mac OSX ...
1
vote
1answer
77 views

How do you move files into the in-memory file system mounted at /dev/shm

Someone recently told me about /dev/shm. You all helped refine my understanding of what /dev/shm is What dev folder allows you tell the OS to cache something? The person who told me about /dev/shm ...
3
votes
1answer
432 views

Reading FreeBSD UFS formatted external drive in Mac OS X

I have an external USB drive with backup files formatted in FreeBSD's UFS file system. When I plug it into a computer running Mac OS X 10.9.4, I cannot read the drive's contents, and I don't have ...
1
vote
0answers
21 views

man causes a broken pipe when using a pager other than less

I'm trying to write a simple script to format my man pages, but I've run into a broken pipe error. These lines both cause the error: env MANPAGER=cat man $foo man -P cat $foo and this is the ...
0
votes
1answer
28 views

Installing rvm and a specific version of ruby using rvm on linux based systems

UI testing is done using ruby and selenium. Installation of rvm Installation of specific version of ruby and setting a default version of ruby Note: Using a linux based operating system.
0
votes
1answer
72 views

Add text to end of every line

I have tried a lot of commands, like this: sed -i '' "s/$/<@string>/" txt.txt > txt2.txt This makes txt2.txt empty, why?!? sed 's/$/<@string>/' txt.txt > txt2.txt This does ...
3
votes
1answer
256 views

How do I fill my password automatically from .bash_profile when running command as sudo?

I know I could just put something like sudo mypassword in my .bash_profile, but I don't want to run every command as root. I want password to autofill under following circumstances: only the ...