Tagged Questions

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
vote
1answer
605 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
146 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 ...
0
votes
1answer
26 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
76 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
303 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
53 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: ...
5
votes
2answers
956 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 ...
5
votes
2answers
148 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
36 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
105 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
278 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
2k 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.
2
votes
1answer
926 views

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

I just installed autojump and have oh-my-zsh installed in my system. 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 ...
2
votes
2answers
115 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
70 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
235 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
54 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
40 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
176 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
838 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 ...
1
vote
2answers
126 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
64 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
78 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
27 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 ...
0
votes
1answer
214 views

How do I find out the keycodes for Ctrl+up and down arrow for TERM=screen?

I am using tmux a lot, and I have already managed to tune my OS X terminal to send the correct key codes for Ctrl+left and right arrow (\033b and \033f). I found those information on the web. However, ...
4
votes
2answers
11k views

How to repair a corrupted HFS+ partition from a damaged hard-disk?

I have a friend's Mac OS X disk that comes with an HFS+ partition. I am supposed to recover the personal data from this disk, and I'm not yet sure if the filesystem is corrupted or the disk is dying). ...
0
votes
3answers
538 views

SSH public key authentication works on LAN and not from WAN

I've setup my SSH server to use public key authentication. When I connect to my server on local network, it authenticates. But it doesn't when I connect over the internet. I don't think the problem ...
2
votes
1answer
91 views

Why when I enter the command “hostname” it returns something other than my computers name?

I am using a macBook Pro I enter: new-host-2:~ Justin$ hostname And it returns: new-host-2.home Why is this when it says in setting/sharing my computers name is "Justin's macbook pro" and computers ...
1
vote
0answers
43 views

Convert command produces a small error [closed]

First off, I'm on a Mac, but I think this can be solved here. I'm converting a .gif animation to a series of .png's using. $ convert ex.gif my_png_files_%d.png I get a series of .png-figures but ...
1
vote
1answer
112 views

rsyncing from ext3 on mac: file has vanished

I am on Os X and I am rsyncing from a ext3 volume (that I read with osxfuse 2.6.2) to a HFS+ volume. The data I am backupping are ~ 500GB. Sometimes rsync gives the following message: file has ...
1
vote
2answers
1k views

Why might an external Hard Disk Run super slow?

I have an external Western Digital HDD (1gig) which is running very slow, 0.5 - 1mb per second. This is on a Mac Pro running the latest OS with all the patches. The HDD is connected via USB directly ...
1
vote
2answers
45 views

Internetless/Remote Arch Install

Don't have a WiFi card compatible with any modules for Linux or Ethernet, but I do have working OS X install with WiFi. Do have brew on OS X, and it being OSX, most Linux programs will run. How can I ...
5
votes
3answers
253 views

Mac OS X find/grep generating “unknown --devices option”

I am entering a command I have done often with Linux, Unix perfectly fine but with Apple Mac OS X 10.8 (and probably before) I get a grep: unknown --devices option when I attempt to run the following ...
0
votes
1answer
91 views

where is the user content on a Mac OS X disk?

I have a friend's Mac OS X disk that comes with an HFS+ partition. I am supposed to recover the personal data from this disk (it's not yet clear if the FS is corrupted or the disk dying), but for the ...
3
votes
1answer
46 views

**/ not working with a mounted volume

I'm trying to recursively extract a set of .jpgs from a mounted volume using SMB1, to a folder on my computer. Here's what I've got: cp -a **/97*.jpg /Users/.../All_Covers This works as long as my ...
2
votes
2answers
79 views

Should my /usr/local/bin be 700 permissions?

I just installed npm and node.js, and I couldn't access npm. And I'm like "why?" and my OS is like "because /usr/local/bin is at 700 permissions" and I'm like "should it really be that way?" ...
10
votes
3answers
10k 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 ...
0
votes
1answer
97 views

What distribution do you suggest for daily use? [closed]

I use my computer everyday for various reasons: programming in c++, android(java), java(in general) listening to music(spotify), watching movies browsing internet, watching youtube clips writing ...
3
votes
1answer
101 views

How to change the default editor for a file type in Mac OSx?

The default editor for java files on my Mac seems to have been set to Xcode, but I want to change it to be the basic TextEditor. I've looked in preferences for the association, but it's not there. ...
0
votes
0answers
39 views

When connecting with GNU Screen (patched version) RPi reprompts for password in kind of loop

I'm sorry this is a repost of my question on raspberrypi.stackexchange.com, but I didn't get an answer there, so I thought I could post it here. If not, please suggest some other way to get help. I ...
0
votes
1answer
109 views

How to write a script that will open up multiple tabs in the terminal?

I am on OSX and using iTerm I have this so far #!/bin/sh open /Applications/iTerm.app & exit 0 So after opening, I need two windows and one of those windows will need to open 6 tabs. two of ...
1
vote
2answers
66 views

Shell script not working to open LimeChat through the terminal

I created a shell script that I will execute in the morning to open up all the apps that I want startup.sh #!/bin/sh open /Applications/Firefox.app & open /Applications/Messages.app & open ...
1
vote
0answers
105 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 ...
0
votes
1answer
50 views

Does changing ulimit get logged Mac/FreeBSD

For some reason our open files ulimit (-n) is getting changes to 256 when it should be 1024. I tried searching for limit in /var/log/{system.log,secure.log} but didn't see anything useful. Any idea ...
2
votes
4answers
100 views

How to edit/delete a .dot_file on mac without using Terminal

When I start Terminal I can not control it. It starts executing an endless loop repeating that some alias does not exist. Because of this I am not able to edit this file using a program such as vim. ...
0
votes
1answer
42 views

How to create an alias for opening a directory on Mac

Trying to create an alias hello. After typing hello in Terminal, then vi opens hello_folder. Now, this code returns: $ hello -bash: hello: command not found 1 #!/bin/bash 2 cd ~/Documents/ ...
1
vote
2answers
155 views

Mac OS X LDAP query via dscl yields different results for same user with same datasource

Where is the NFSHomeDirectory attribute stored for a Mac user who authenticates via LDAP? It doesn't seem to be in the LDAP database on the backend so I assume Open Directory is involved. I have 2 ...
8
votes
1answer
3k views

What does the “@” (at) symbol mean on OSX ls? [duplicate]

When I check permission of less files from the command line on my Snow Leopard OSX system using Bash I see -rw-r--r--@ for certain files and for others I just see -rw-r--r-- What does the @ mean here? ...
0
votes
1answer
88 views

Cancel SSH (after using it to browse) without logging out?

I'm afraid I'm not an expert on Unix and its command line (I'm using a Mac), so do bear with me (possibly an extremely stupid or basic question). I've used the command ssh -D 8080 -f -C -q -N user@IP ...
0
votes
1answer
421 views

Use remote ViM clipboard from iterm2 on Mac OS X

I have been using VNC for a long time for development and now I decided to move to iterm2 and screen. But there is a small problem. I have to ssh into a remote machine and use vim there. And I want ...