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
3 views

Mac drive in use, understanding lsof

I am trying to repair permission on my external HD as I can not empty my trash when its plugged in because I get a bunch of "such file is in use". I read online that this might be resolved by ...
0
votes
0answers
5 views

OS X Java Security Edit Site List En Masse

I'm sure, like many other systems administrators like myself who use Mac, you've come across the dreaded Java Security site list and the need to add IP's for individual blades, servers and anything ...
1
vote
2answers
26 views

Making persistent USB with minimal OS on os x

I am looking to turn a 8g usb into a bootable drive with a minimal OS. All i want is an OS that will allow me to use vim, nothing else (no internet/any other services). I basically want to turn a usb ...
1
vote
0answers
40 views

osx - dd command behaving weirdly [duplicate]

I've been using dd for a couple of years now, most of the time successfully. I usually use it to dd Linux images to USB drives. My workflow doing so is as such: convert .iso image to a .img format ...
3
votes
0answers
13 views

Cocoa API implementation for Linux?

Is there any Wine-like project for running OS X apps on Linux? I mean an implementation of Cocoa API for standard Linux machine, as it is done with Wine.
11
votes
1answer
799 views

'ls' showing two identical files in a directory

So somehow the command ls seems to be showing me two identical files in a directory. I am certainly not doing something right here. Behold $ ls -Blah /System/Library/LaunchDaemons total 32 ...
0
votes
0answers
6 views

redirect help info to vim [duplicate]

I use this kind of commands to redirect help info to vim, for example: man ls | col -b | vim -R - but for some help info highlighted with color: celery -h there is a mess in it. How to make it ...
8
votes
1answer
71 views

OS X, bash: less works on open file descriptors, cat doesn't

In a bash script I'm working on (which has to run on Ubuntu and OS X), I need to redirect the output of hundreds of commands to a file. Rather than appending &>... to all of them, I simply do ...
2
votes
1answer
78 views
+50

OS X FileVault 2 duress password

I've been attempting to add a custom script to run after the FileVault password is entered on login that will check whether it a 'special password' that will run a script in the background after ...
1
vote
1answer
28 views

Trying to find all files in certain directory that are not referenced in other files

I have this project that has a images folder with images in them and I'm pretty sure some of them are not used. So I'd like to list all images that are not referenced in any other file. I'm not very ...
0
votes
1answer
25 views

bash script failing to use ssh -i. Can't see directory

I am experiencing something strange. I am working on a script to remote install Splunk on servers via a script. In this script I ssh to my practice servers (5 amazon EC2 instances running Redhat). ...
0
votes
0answers
62 views

Installation Step Failed (installing the system) - Kali Linux

I am trying to install Kali Linux on a Virtual Machine using Virtual Box on an OS X host. The only issue is I get this error: Here are logs of my errors: hardware-summary partman syslog Also if ...
0
votes
0answers
8 views

VLC exporting video frames uncontrollably, can't figure out how to stop it (possibly related to ffmpeg)

I have a very peculiar problem. Every time I open a video in VLC, in any format, it immediately begins exporting frames to my Pictures folder I tried deleting VLC and reinstalled a newer version but ...
0
votes
1answer
13 views

How do I assign hostnames for machines on my network?

I'm using Terminal on a Mac running OS X Yosemite. Wondering how I can assign hostnames so that I can run telnet instead of using the ip address.
2
votes
1answer
45 views

rsync -vvv gets stuck in OS X with no clear explanation

All of a sudden (not sure when the problem started) my rsync commands against a given machine get stuck: $ (dd bs=1024 count=1024 </dev/urandom >/tmp/temp_file && rsync -arvvv ...
2
votes
1answer
39 views

Why does my ls --help not work?

Marias-MacBook-Air:~ marias$ ls --help ls: illegal option -- - usage: ls [-ABCFGHLOPRSTUWabcdefghiklmnopqrstuwx1] [file ...]
3
votes
0answers
39 views

Deleting ghost files with non-ASCII characters

I have some weird files and folders in my trash on Mac OS X. After I "empty" the trash, the files still remain. I attempted to manually delete the files: $ cd ...
4
votes
2answers
61 views

Mac OS X how to verify particular packages are installed

In a BASH script I need to check if gcc, g++, cpp, make, libpng devel, zlib devel, git, Java (including devel files), ant and pkg-config are available on Mac OS X and if not, I need to prompt user to ...
2
votes
1answer
38 views

Installation of GPG alongside a running one: configure problem?

I already have a production version of GPG from a previous installation. I would like to build and test the last version of GPG without interfering with the production one. I am performing this test ...
0
votes
0answers
23 views

Problems launching Ubuntu from rEFInd on Yosemite

Firstly apologies if this should be posted on a mac stack exchange group. Ive been running Ubuntu on my macbook pro for a while now and not had too many issues, recently however I have hit a wall. I ...
1
vote
0answers
9 views

partprobe equivalent on OS X

After I manually edited a partition table on a device in OS X, the corresponding devices don't get created automatically under /dev. How to I tell the OS X kernel to reread partition tables as I ...
0
votes
0answers
43 views

$PATH variable on Fish Shell OS X

I have somehow screwed up my path variables with Fish shell on OS X. Is this the proper $PATH variable in the config.fish? user@host ~> more ~/.config/fish/config.fish set -g -x PATH ...
1
vote
1answer
31 views

Access Macintosh HD from Ubuntu - Permission denied

I've followed this instructions and now I'm able to access my Machintosh HD from Ubuntu, the problem is that I can't access the folder I need (example Desktop), it say that I haven't enough ...
0
votes
1answer
25 views

color scheme setup for iTerm

How do you setup color scheme of iTerm on Mac? For color scheme, I mean using different color to display folder name, file name, machine name, etc.
4
votes
1answer
137 views

How can I redirect all UDP traffic from one port to another on BSD / OS X?

On Mac OS X 10.9.5 I am running boot2docker and would like to temporarily forward a non-privileged UDP port 69 to port 69 of the boot2docker virtual machine. Virtualbox only supports forwarding ...
0
votes
1answer
28 views

.txt File from Mac not converting properly

I have a .txt file from my Mac that when I send it over to my Raspberry Pi running Raspbian and open it in nano it converts weirdly. Example: Text file in Mac OSX: ...
1
vote
1answer
17 views

Resizing the terminal window for ipython command prompt

I am using the OS X Terminal (I know, not Linux or Unix, but hopefully that's irrelevant here) for a number of operations, and commonly use nano to quickly edit files. In doing so I often resize the ...
2
votes
2answers
54 views

Split shell horizontally to show ls -al and pwd

I use zsh as my default shell on OSX. I would like for my shell to always have a horizontal split showing pwd and ls of the current directory I'm in. How do I go about it ?
4
votes
2answers
195 views

Man page quotation characters [duplicate]

I've just been looking through a few man pages for a few different commands including grep and ifconfig. I've noticed over a few pages, the content uses a strange syntax to notate what i think are ...
6
votes
1answer
88 views

Terminal does not accept pasted or typed lines of more than 1024 characters [duplicate]

When I enter text on stdin in an OS X Terminal, a single line is limited to 1024 characters. For example, cat > /dev/null beeps after I type (or paste) a line longer than this, and refuses to ...
2
votes
2answers
206 views

How can I import new Unix commands on my OS X Terminal?

There are a number of Unix commands which do not work on my OS X Yosemite 10.10.3, Terminal Version 2.5.3. For instance, I often use this cheatsheet of Unix commands: ...
2
votes
0answers
30 views

Identify process

Every couple of minutes my Mac OSX machine starts running a process that consumes 10% of the CPU. It runs for a couple of seconds and then stops. I can see the process coming up in 'Top', but the name ...
1
vote
1answer
39 views

Lsyncd not working on Mac 10.9

I'm attempting to use lsyncd to automatically move files to my local development server. My host is OSX 10.9. SSH on the server works. I can connect using ssh from the host. I am using an SSH key to ...
1
vote
0answers
37 views

does vi have a bug which changes spaces in unedited lines, or is there an option to turn this “feature” off?

I changed a file by just adding a few lines, then ran a git diff and found changes strewn throughout the file resembling as shown in the image above: an extra space at the end of a line in the ...
0
votes
1answer
28 views

Dual-boot Mint on OS X: is OS X Startup Manager not suitable to boot Mint partition?

I am thinking of dual-booting Linux Mint on Mac OS X, and for that reason I was reading a tutorial about it (http://community.linuxmint.com/tutorial/view/1643). After Mint's installation the tutorial ...
3
votes
1answer
104 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 ...
3
votes
1answer
39 views

How do I check if sound card is in use and, if possible, which process is using it?

I want to know if a program is using my sound card without my knowledge. I thought about building a program that uses low-level device driver code to do the trick, but am now interested in seeing if I ...
1
vote
1answer
17 views

Installer thinks there's an installation in progress on OS X

Every time I log off on my user account, an Installer prompt comes up asking "Are you sure you want to abort the installation?" and the options are Abort or Cancel. I am absolutely certain that ...
1
vote
1answer
28 views

What happens if I move the hard drives used by Rsync to another computer, and keep syncing them with it?

I realise the question is confusing, so allow me to elaborate. I apologise for the phrasing, as I wasn't sure how to put it. Here's the scenario: As my backup, currently my Mac launches Rsync every ...
2
votes
1answer
39 views

How to configure Alpine to use an alternate editor on Mac OS X?

I'm considering using Alpine on OS X (Yosemite). I have most things configured, but I want to be able to use a GUI text editor (specifically OS X's TextEdit) as the Alpine alternative editor, so that ...
0
votes
1answer
33 views

virtualbox on os x lags when not active

I am running ubuntu server as guest inside virtualbox on os x 10.10.x host While the system works, it lags whenever the virtualbox window is not the active app. E.g. I log into ubuntu from terminal ...
0
votes
3answers
66 views

Removing line-breaks, whitespaces and tabs from every file

Say I have a folder with 10K text files. I would like to remove every space, TAB and linebreak from each file. How can I do this efficiently?
0
votes
1answer
241 views

How can I delete files on a read-only file system?

I have an encrypted .dmg file with some useless files that I need to delete to make space. How can I delete them without having to convert them into a read write system and then back? (Would take 4~5 ...
0
votes
0answers
47 views

Repair/fix HFS+ partition (“Invalid B-tree node size”)

salam I need help with a 800GB partition. I accidentally deleted my partition with diskutility, but it says something like "Error that disk in not good". I already tried Testdisk; it finds my ...
1
vote
1answer
65 views

Using git over sshfs on OSX

Due to a new job, I'm switching from working on Ubuntu 14.04 to OSX Yosemite. I mainly work in R, and I was using RStudio and git to manage my code on a server (Debian). To this I mounted the server ...
0
votes
0answers
41 views

can I boot ext4 usb stick with xubuntu on from a Mac laptop?

is there a way to boot my ext4 formatted "xubuntu" USB memory stick from a Mac laptop? The laptop can identify FAT32 usb memory sticks with ubuntu at boot time, but it cannot identify mine, which is ...
4
votes
0answers
54 views

rm -rf ~/.Trash/* doesn't work, Mail Attachment.eml:OECustomProperty unable remove

I'm on OSX10.10.3, I've had a file in my trash for about 6 months or so. I have a file in my trash, 2 actually. That are from my mail cache that I dumped since I don't have the space on my SSD for my ...
1
vote
1answer
122 views

Is there a canonical method to restrict ssh access to certain IP addresses in Unix?

I checked man pages related to ssh on OS X and other systems and tried using hosts.allow and hosts.deny files as per this post, and sshd_config to no avail. $ cat /etc/hosts.allow sshd: ...
0
votes
0answers
76 views

Using brew: curl version error, “Incompatible library version” for libcurl.4.dylib

I used to have a working version of homebrew but then something broke today related to curl and libcurl.4.dylib— possibly a version or file location issue. I'm on Mac OS X 10.9.5 (Mavericks). For ...
1
vote
0answers
25 views

Installing homebrew - dangerous permission changes?

I'd like to install homebrew, but when I start it up, I get this message: ==> The following directories will have their group set to admin: /usr/local/. /usr/local/include /usr/local/lib Seems ...