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)

6
votes
1answer
279 views

Why wouldn't a symlink to a symlink work?

I've run into a weird issue when installing SWI-Prolog using homebrew on my OSX 10.9 box. I'm trying to debug it to figure out whose bug it is (SWI-Prolog's, homebrew's, or OSX's), so I can report it ...
-1
votes
1answer
16 views

cron not working with .bash_profile function name [on hold]

I do crontab command * * * * * source ~/.bash_profile; rsyncUbu4RedisFolder 2>&1 >> /tmp/cron55.out where rsyncUbu4RedisFolder is function in .bash_profile: rsyncUbu4RedisFolder() { ...
5
votes
3answers
146 views

Extracting data from complex file structure

I have a txt file that is a dump from a database, that contains one entry per line. The structure is like this: 1500 29/03/2010 18 02 09 47 17 45 28.248 0 0.01 130 12.721 7908 298,809 YES ...
0
votes
2answers
23 views

simplest way to get an ubuntu virtual machine w/ ssh server on my network

I have an OSX box and I'd like to just get a fresh install of Ubuntu to use remotely over SSH. That's all. But I'd like to get that on the same box without in anyway altering my existing OSX ...
1
vote
1answer
23 views

how to debug/fix screen crashes on startup

(this is a question in reference to the OS X version of Gnu screen. I don't know if this makes any difference - and I guessed that Unix & Linux would have better screen-fu than Ask Different.) ...
0
votes
0answers
21 views

Failed to download the JMeter CA certificate for HTTPS recording

I am unable to run HTTPS recording in Jmeter. I have used "jmeter_proxy_step_by_step.pdf" for the setup. The Jmeter version is 2.11 and Java jdk7. But I am unable to generate the certificate. The ...
1
vote
1answer
395 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 ...
0
votes
1answer
15 views

No xauth data; using fake authentication. Unable to display remote windows

Whenever I try to ssh -X or -Y into a remote Linux server from my Mac (OSX Mavericks) machine, I get the same message: "Warning: No xauth data; using fake authentication data for X11 ...
0
votes
0answers
22 views

How to find the currently running app from terminal on OS X?

I'm writing a shell script runs in the background and monitors user activity. I'd like to be able to capture current application/document if possible. Can I do that? (Cross-posting this from ...
1
vote
3answers
840 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
2answers
382 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 ...
1
vote
1answer
18 views

rsync from Mac ext hd to VPS works but not VPS to Mac

There are no errors with either rsync -a /Volumes/hd/dir_foo foo@foo.com:~/ or rsync -a foo@foo.com:~/dir_foo /Volumes/hd/dir_foo in the first instance the synced folder on remote system CentOs ...
4
votes
1answer
231 views

Diacritics do not work in GTK+ applications running on Mac OS X Snow Leopard

I am using some GTK+ applications in Mac OS X Snow Leopard. My MacBook is configured for using the Brazilian layout, which allows it to enter diacritics as dead keys (so I can write á typing ' and ...
1
vote
3answers
884 views

Dual booting on a Macbook Pro 7,1.

I'm looking to install Linux on my Macbook Pro in a Dual Boot config. I've previously asked this question in a different fashion here: Dual Boot Fedora 16 with OS X rEFIt. However, it didn't really ...
0
votes
4answers
46 views

Mass mv on files and changing filenames [duplicate]

I want to change these filenames download (19).download ... download (27).download to download (19).html ... download (27).html I run unsuccessfully mv *.download *.html usage: mv [-f | -i | ...
3
votes
2answers
532 views

List all chflags file flags?

Is there a way to see a file's flags, such as hidden, schg, etc? I've got an rwxrwxrwx file that I can't edit, and I think a flag might be responsible.
1
vote
1answer
63 views

Configuring Vim with clientserver and clipboard

On OS X I have vim working just fine from homebrew. The default homebrew install compiles vim with these flags. ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/7.4.161/share/man ...
0
votes
0answers
16 views

Debian on macbook air not booting

I installed Debian on my macbook air a week ago after first going through the http://www.rodsbooks.com/refind/installing.html#osx installation guide. The installation of Debian worked fine and i ran ...
1
vote
2answers
23 views

emacs wont let me use a different background color

I've tried different themes in emacs (on mac with xterm set to 256) and everything works great except it's ignoring the theme's background color. Even if I add (set-background-color "red") for example ...
1
vote
0answers
20 views

ssh-copy-id hangs with 8192-bit key

Having a bit of an issue with ssh-copy-id it seems to hang when i try to copy 8192-bit rsa keys accross to an OpenIndiana server. I running OS X as my client OS. Is anyone aware of issues with keys of ...
0
votes
1answer
24 views

Is there any command to list all related files and folders to specified file in macosx?

I have many ctags in my macosx. When doing which ctags, it gave me /usr/bin/ctags. But I also want to know where is all related folders and files to this /usr/bin/ctags Any useful command?
4
votes
1answer
42 views

Undocumented pppd exit code

If my machine (OSX 10.9.2) is not connected to the Internet and I want to establish pptp connection by using pppd: $ sudo /usr/sbin/pppd serviceid 5BE14D3A-7B94-4704-ADE0-9883B189199E debug logfile ...
2
votes
4answers
197 views

How can I find out where the firefox bin is?

I am trying to add Firefox to my PATH like in this tutorial. I have Firefox in the Applications folder of my GUI on my mac book air. I am familiar with adding locations to my path. But I don't know ...
3
votes
2answers
113 views

To grep 20 characters after and before match

I have the problem that I get too much information after the match for grep -RnisI --color=auto "pseudomonas" * I want to get only like 20 characters or 10 words after and before the match. What ...
0
votes
1answer
70 views

I am the owner of a file and I have write access: why can't I save?

I am on OSX 10.9.2 I am locked out of postgres and trying to modify pg_hba.conf to get back in. http://stackoverflow.com/questions/11919275/can-not-enter-and-change-postgresql-pg-hba-conf-file I run ...
1
vote
1answer
94 views

Why is this copy/paste in vim configuration not working properly?

I have the following in my .vimrc vmap <C-c> y imap <C-p> <esc>P So that I can do my classic sortcut for copy/paste. It works fine on Cygwin but not in my ssh session to ...
4
votes
3answers
2k 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 ...
1
vote
1answer
173 views

Compile IMAP with certain PHP API version for MAMP

I've installed MAMP on Mac OS X (where PHP 5.3.15 with API version 20090626 is installed), but IMAP there is without SSL support. As long as MAMP using PHP v5.4.4 (API version 20100525) I've ...
2
votes
1answer
216 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 ...
7
votes
3answers
311 views

Why are interactive shells on OSX login shells by default?

In Linux and, to my knowledge, all Unix systems, terminal emulators run interactive, non-login shells by default. This means that, for bash, the started shell will: When an interactive shell that ...
0
votes
1answer
261 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 ...
3
votes
1answer
173 views

IPFW Port Forwarding

This is my situation: I want to connect to an OpenVPN server from my office (we're using a proxy, only ports 80 and 443 are allowed). Server IP address is: 176.31.250.232:843 My static IP address ...
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 ...
0
votes
1answer
25 views

OSX plist editing causes app crash

Does anyone have any idea why Finder (or iBooks or Mail, or Preview BUT NOT Terminal) crashes after adding the following key:value to its plist: LSUIPresentationMode -int 4 (puts the Finder's ...
1
vote
0answers
50 views

How can I configure NoMachine 4.0.369 for OS X to connect to freenx-server on Fedora 20?

On an otherwise untouched installation of Fedora 20 Security Lab, I'm trying to enable NX access so I don't have to use Windows and the vSphere console. I have to use SSH to reach the host, no other ...
8
votes
3answers
2k views

How can I determine the fs type of my current working directory?

I need a platform-independent and lightweight way of detecting the mount type of my CWD. Specifically, I need to determine if my CWD is in an SSHFS, NFS, CIFS, SMB, or local block store mount. I need ...
3
votes
4answers
84 views

Use basename to parse a list of paths held in a file

I'm running Mac OSX and trying to use the command line to find the number of files I have with the same name. I tried to use the following command: find ~ -type f -name "*" -print | basename | sort ...
2
votes
2answers
41 views

In OS X Darwin, why can I interfere with text input across user sessions using cat?

OS X Darwin: Disrupting Terminal Sessions Across User Identities How, in Brief: with cat < /dev/ttys_, in Terminal. My Question This OS X 10.9.2 Darwin behaviour seems odd to me, and I would ...
1
vote
0answers
27 views

htop: Using Ctrl + n & Ctrl + p to move between processes

I'm running the latest version of htop through Homebrew on the latest OSX. htop seems to work well on my terminal (either Terminal or iTerm), but: I'm unable to use Ctrl+n and Ctrl+p to move up and ...
2
votes
1answer
25 views

Copying emacs content through terminal app's clipboard copies unexpected tabs for some spaces

I'm using terminal.app on OS X, and when typing in emacs I often want to copy the text and paste it into some other program. When I do, I find that copied text has some spaces unexpectedly replaced by ...
15
votes
3answers
804 views

mv a file to /dev/null breaks dev/null

If I do: touch file; mv file /dev/null as root, /dev/null disappears. ls -lad /dev/null results in no such file or directory. This breaks applications which depend on /dev/null like SSH and can be ...
0
votes
1answer
54 views

Using a minimal linux host for OSX and W7 VMs

I am a 3d artist (animation/modeling/sculpting) and I have a dream. I have licenses of zBrush the Autodesk and Adobe suites. My zBrush is a mac only licence; maya is both (I think), Adobe is for ...
1
vote
1answer
31 views

What version of bash am I running

I tried to change default bash on OS X Mavericks, Installed new bash trough brew, run chsh -s /usr/local/bin/bash, went to "Users and group" made sure that Login shell for my login points to the ...
7
votes
2answers
7k views

How can I install the `ll` command on Mac OS X?

I'm using Mac OS X. When I SSH into servers I find the ll command useful, but it's not available on my local machine. How can I install it?
1
vote
0answers
66 views

Command for finding open ports

On my linux servers I have this alias set: alias ns="sudo lsof -Pi|grep -v ESTABL|grep -v CLOSED|grep -v -e '->' | tr -s ' ' '\t' | awk '{print $3 "\t" $8 "\t" $5 "\t" $9 "\t" $1}'| column ...
1
vote
2answers
118 views

Unable to use date command to change specific date format in Bash shell on OS X terminal

I am using the date -d command to change a specific date format to another. Below is the example used currDate=`Wed 12 Feb 2014` formattedDate=`date -d"${currDate}" +%Y%m%d` echo $formattedDate
0
votes
1answer
19 views

Unrecognized Type: for length of date string [closed]

I am getting current date and checking for length of date if non-zero then perform some action. now=$(date) echo "$now" if [[ -n "$now" ]]; then echo "not empty" fi Prints this to console- Mon ...
1
vote
0answers
38 views

unable to open openmpi ? Terminal / OSX 10.9.1

Hi I am trying to simulate an example of a software using terminal on OSx 10.9.1. When I execute examples the terminal said Bus error:10 and some errors abput openmpi. I downloaded Openmpi versions ...
5
votes
2answers
298 views

Zsh: Automatically modify executed command

I've recently installed grc (generic colorizer) to my system via MacPorts, giving me the ability to get colorized output for plenty of commands which by default don't support it (see screenshot ...
2
votes
1answer
260 views

FTP timeout FIRST time [closed]

I'm using PureFTPd on MacOSX (Snow Leopard, not server version). When trying to access the FTP account from the outside via dyndns (e.g. using https://www.wormly.com/test_ftp_server) the connection ...