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
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
149 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
24 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
22 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 ...
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
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 ...
0
votes
4answers
47 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 | ...
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
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 ...
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 ...
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
43 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 ...
3
votes
2answers
114 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 ...
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 ...
7
votes
3answers
313 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 ...
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 ...
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 ...
3
votes
4answers
85 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
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
55 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
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 ...
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 ...
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 ...
0
votes
1answer
77 views

What is the difference between OSX, Linux and Windows System Authorisation? [closed]

Last week my lab instructor started giving us introduction about linux and how to use CLI commands. Anyway, he started insulting and joking about Mac OSX systems and how they are a joke systems. He ...
1
vote
1answer
36 views

Automatically copy PDF.plugin to Chromium.app

I'm using Chromatic.app to update my Chromium.app recently. I'd like to use Chrome.app's PDF.plugin in Chromium.app. Therefore I need to copy PDF.plugin to the following directory: ...
1
vote
2answers
100 views

How can I get the tac command on OS X?

I like to use tac to reverse the output of cat. However, it's not available in the Mavericks terminal. I tried to find it on MacPorts and again it's not available. Can anyone please show me how to get ...
4
votes
2answers
116 views

run perl script with unknown perl location

I'm developing a perl script which expected to be downloaded by Mac users with a very small knowledge of shell, linux etc, let's say office managers and accountants. After the downloading the script ...
0
votes
0answers
13 views

safely override oh-my-zsh configurations

I made some changes to my oh-my-zsh configurations, namely I changed an alias in /lib/aliases.zsh and commented out a function in a plugin that I overrode in a script. I'm wondering if there is a way ...
0
votes
2answers
39 views

OSX 10.9.1 unable to open .pkg file

I downloaded gfortran-4.8.2.pkg from http://coudert.name/software/gfortran-4.8.2-Mavericks.dmg but somehow I could not open it . I unpacked it, right clicked so, the menu was appeared, it said ...
0
votes
1answer
81 views

UDP commands for Linux and Mac?

I'm trying to test UDP between 2 terminals in the same machine. For instance: Terminal 1 UDP listener@port:3000 UDP sender to port:3001 Terminal 2 UDP listener@port:3001 UDP sender to ...
1
vote
2answers
102 views

what is the command to display .eps files?

I'm have a file called t-0.8.eps. How can I open this file in the shell? I am using Mac and when I click .eps files the preview (the name of the software to read PDFs) says failed.
1
vote
0answers
117 views

zsh completion installations (autojump) - How to use them?

I just installed autojump. I have included the log of the installation at the bottom of this post. Note that at the end it says: zsh completion has been installed to: ...
2
votes
2answers
73 views

What is PATH on a Mac OS?

What is the PATH in a Mac OS? I have used it to install global command-line tools, but the only documentation I have found are tutorials for doing just that, with no real explanation of what is ...
2
votes
1answer
35 views

/etc/paths in OS X and other Unices

Is /etc/paths read by every shell that I run in OS X? For example, if I use zsh, will it parse /etc/path to populate $PATH? What exactly is the sequence that OS X follows to populate $PATH? Does it ...
1
vote
1answer
66 views

Difference between .tar.gz.asc, git.tar.bz2 and .tar.bz2

I have a Mac running OSX 10.9.1 and I want to install Gerris and its dependencies. In the last lines of the page I have to install ffmpeg. But there are lots of releases of ffmpeg. Which one I should ...
0
votes
0answers
32 views

No such process error with launch ctl start. Mac OSX 10.9

The goal is to set the machine's network name with the IP address of this machine. I have created a plist file and put it into /library/launchagents/. For debugging reasons, I used the commandlaunctl ...
1
vote
1answer
38 views

Which software to use? [closed]

I am familiar with Unix and am trying to move my home away from Microsoft completely. I wannna build a NAS/website(local and webwide) server. My primary OS is OS X Mavericks and secondly Ubuntu. ...
0
votes
1answer
52 views

Missing source ~/.bashrc Mac terminal : ~/.profile?

I need to install Gerris on mac 10.9.1. The website http://gfs.sourceforge.net/wiki/index.php/Mac_OSX_Installation says: Note: make sure that the file ~/.profile contains the line source ~/.bashrc ...
1
vote
1answer
144 views

ddrescue extremely slow on USB hard drive

I'm recovering the HDD from my laptop that died (wouldn't boot up at all, Disk Utility reported that there were no problems, but wouldn't mount the disk). I've hooked up the HDD through the USB ...
0
votes
2answers
39 views

Why mkdir -p /Local/Foo/Bar/Wah not work but cd /Local and mkdir -p Foo/Bar/Wah works? [closed]

I am trying to create a local folder in my local development machine, on Mac OS X Mountain Lion, so I did: sudo mkdir /Local sudo chmod 777 /Local mkdir -p /Local/Foo/Bar/Wah (note that last line ...
3
votes
0answers
54 views

OS X-like deadkeys behavior on Linux

I'm on Debian (actually Crunchbang), and my notebook has a default US layout keyboard. My native language is Brazilian Portuguese (pt-BR), so I've changed my layout with setxkbmap -layout us -variant ...
0
votes
1answer
45 views

“Cannot determine operating system” error

I have a OSX 10.6.8 and installed a LINUX version of Mathematica in my mac. When I try to open it with X11 or Terminal, it claims that "mathematica cannot determine operating system". I cannot ...
0
votes
0answers
20 views

How do I install GCC and make on a mac without administrator access or using Xcode?

I'd like to install gcc and make on my Macbook Air, but I don't have root access on it. I found this link through searching on google, but I have no idea how to set up the prefix's so that the actual ...