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
1answer
16 views

X11Fowarding not working on Arch Linux ARM

I am trying to setup X11Forwarding between my Arch Linux ARM server and my OSX computer. I am accessing the server locally (always). /etc/ssh/ssh_config: X11Forwarding yes AddressFamily any ...
1
vote
0answers
10 views

How and when is keyboard data encoded from keyboard to application? [duplicate]

I hope this is not the wrong place to ask this, if it is, please point me in the right direction. As the title says, how and when is keyboard data encoded? I just wanna know in basic terms the ...
1
vote
2answers
32 views

Insert multi lines after match using Mac's sed command

I have 2 files:- a.xml <project> <modelVersion>4.0.0</modelVersion> <parent> ... </parent> </project> b.xml <project> ...
-1
votes
2answers
46 views

Find file, Edit text within files

Im trying to find a file then edit the text within these files. This is what I have so far, but sadly Im not that well versed... Help Please? grep -rl "wrongtext" ~/Library/Calendars ...
0
votes
0answers
10 views

Ubuntu 14.04 VM resizing in VMWare fusion 7 whenever a terminal is opened?

On a computer at work, we have a virtual machine running that resizes the whole VMWare window whenever you launch a new CLI terminal window within the VM. Any ideas how to fix it? It's quite annoying. ...
1
vote
0answers
20 views

Using curl results in error: “Library not loaded: /usr/local/lib/libcurl.4.dylib …”

I had a few issues with the cURL library interfering with Homebrew. After hopefully removing the library (I no longer use it anyway), I started receiving errors whenever I used commands such as curl ...
4
votes
3answers
119 views

How to copy recursively and change file names to be unique

I have a large tree containing a lot of photos on an external drive that was formatted with one of the linux filesystem types (don't remember which one). It's mounted on my mac and I'm trying to copy ...
0
votes
0answers
42 views

Remote X11 applications have wrong keyboard mappings (local: OSX, remote: Linux)

I am connecting from a Mac (with OSX 10.6) to a Linux machine (with CentOS 6.6) by using the ssh command (ssh -X). On the Mac side, I am using the Terminal app. After logging into Linux, I can use ...
2
votes
2answers
69 views

How can I setup a separate bash environment with only GNU utilities on OS X?

For the last 5 years, I have used linux as my everyday OS for performing scientific computing. My work recently gave me a Mac that I will be the primary user for the next few months. I keep running ...
0
votes
1answer
24 views

How to send a NDP message?

I would like to send a NDP ( Neighbor Discovery Protocol ) message from my Mac on the network to discover which device is available or not. How can I do this ?
2
votes
1answer
40 views

rsync over SSH sometimes very slow--other times maxes out bandwidth

I have a bash script set up on computer A (Mac OS X) set to run every five minutes via a cronjob. This script checks for new files on remote computer B (Gentoo Linux) then rsyncs any new files to ...
0
votes
1answer
11 views

Bind tmux prefix to section symbol §

I usually use the backtick key as my prefix, but this keyboard has the section/stanza symbol § where the backtick usually (at least, for me in the UK) is. If I bind to this key, quoted or unquoted, ...
2
votes
1answer
27 views

using dd command for folder, but deleted items don't seem deleted [closed]

here is the image I used dd command to create a new floppy. First I tried it with a folder filled with naber.bin, test.bin, blabla.bin and boot.bin. And then i deleted all except boot.bin. ls -a ...
1
vote
1answer
23 views

Installed PDFInfo with Homebrew Cask but no command associated with “pdfinfo”

First, please excuse this very basic question. I'm sorry I have to ask it, but it's very difficult to find your way around the shell at the beginning. I installed pdfinfo with Homebrew Cask: brew ...
0
votes
0answers
28 views

How do I move files from a disk image using Terminal.

I downloaded an application (LaTeXiT) that installed itself as a disk image. I navigated to /Volumes and into the disk image, but when I try to move the contents to my /Applications folder, it returns ...
0
votes
0answers
47 views

Dual Booting - MAC OSX

I'm new to the whole Linux OS and want to use a distro called "Parrot Security" Problem is, I have a Mac Laptop to which I want to dual boot from. I've installed reFINd and tried to boot from a ...
1
vote
1answer
23 views

To recover OSX data in Debian

I have had taken backups by TimeMachine and now my Macbook Air 2013-mid finally died so I have to rescue files in Debian 8.1. However, it seems that no backups of so directories have been taken. I ...
0
votes
1answer
81 views

“dyld: Library not loaded: /usr/local/lib/libcurl.4.dylib” while executing curl with a unprivileged user

My MAC OS is Yosemite 10.10, which has an old version of curl. I have installed Xcode and Xcode command line tools. I run cURL with the "sudo" command as “sudo curl”: sudo curl Password: ...
0
votes
3answers
74 views

Extract numbers from a text file and place them in another file

I have a text file whose contents looks like this: ...
7
votes
4answers
362 views

How to grep-inverse-match and exclude “before” and “after” lines

Consider a text file with the following entries: aaa bbb ccc ddd eee fff ggg hhh iii Given a pattern (e.g. fff), I would like to grep the file above to get in the output: all_lines except ...
1
vote
1answer
23 views

how to use dd to backup second linux hard drive from os x?

I have a MacBook with Linux installed on the primary hard drive. On an external USB 3.0 drive, I have OS X installed. The external drive has plenty of space so I would like to boot up OS X and make ...
1
vote
2answers
63 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
8 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
43 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
25 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
840 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
83 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 ...
3
votes
1answer
98 views

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
38 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
36 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
187 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
11 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
59 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
40 views

Why does my ls --help not work?

Marias-MacBook-Air:~ marias$ ls --help ls: illegal option -- - usage: ls [-ABCFGHLOPRSTUWabcdefghiklmnopqrstuwx1] [file ...]
3
votes
1answer
56 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
78 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
41 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
26 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
17 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
70 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
58 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
33 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.
5
votes
1answer
190 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
34 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
59 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
207 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 ...