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
0answers
45 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
134 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
2k 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
48 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
276 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
48 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
85 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?" ...
11
votes
3answers
11k 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
103 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
120 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
42 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
111 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
70 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
109 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
123 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
44 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
195 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 ...
9
votes
1answer
4k 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
488 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 ...
3
votes
1answer
5k views

Customize Top Panel / Global Menu / Super-Wingpanel in Elementary OS Luna

How on ElementaryOS change Wingpanel on Top Panel / Global Menu / Super-Wingpanel like OS X ?
0
votes
0answers
236 views

How can I continue past this point in installing Solaris 11 under VMware Fusion 5.0.4 on Mavericks?

I have a Mac running VMware Fusion 5.0.4 on OSX Mavericks, and I do not seem to be able to get past a certain point on installation on either of two installers I tried. A (text) window comes up, ...
2
votes
1answer
209 views

VirtualBox abnormal behavior when mouse focus from iMac Maverick to vm running Debian wheezy

I am experimenting this really annoying behavior. I never had this problem with other platform combination. In this combination: Hardware OS Host: iMac Maverick Oracle VirtualBox 4.3.2 r90405 Vm ...
1
vote
0answers
202 views

Keyboard mapping VNC

I recently installed realvnc server on my pc running windows 7, however when connecting from my macbook using the "screen sharing.app" a number of keys are unavailable. For example I need to use the ...
2
votes
1answer
83 views

Translate GNU ps flags to standard flags

I'm using oh-my-zsh and its ssh-agent plugin on OSX, but lately somebody upstream decided to use ps x. I'm not entirely sure what that even does, since I haven't used a GNU userland in something close ...
2
votes
2answers
2k views

Best options for mounting Mac OS X hard drive on my Linux box?

I have a new 3 terabyte external USB hard drive (Seagate ST3000DM001 in an enclosure). I hope to use it on both my iMac (OS X 10.6.8) and my Linux machines (Kubuntu). Right now this drive will ...
1
vote
0answers
538 views

Octave - warning: unable to open X11 DISPLAY

My setup is as follows: Octave 3.6.4 Mac OS X Mavericks 2009 Macbook Pro I'm trying to run Octave in Terminal, with gnuplot. I'm trying to plot matrices in a graph, as part of an online Coursera ...
0
votes
2answers
188 views

Problem with file permissions in shared directory under /srv between OS X and Ubuntu

I'm setting up some folders where any user in the users group can collaborate on files, on a Ubuntu 12.04 LTS server. It seems that users on my machine have no problems editing each other's files (I ...
3
votes
1answer
117 views

Spawn a new terminal window from the terminal

Is there any terminal command I can execute that will pop open a new terminal window? I need something that will work in OSX' Terminal.app, but it would be nice if there were a way to do this that ...
1
vote
0answers
165 views

sshfs and Emacs: file changed on the disk

I am using Mac 10.6.8 SSHFS version 2.4 fuse4x library version: FUSE 2.8.7 / fuse4x 0.9.2 I connect via sshfs to a remote cluster (via a bridge). I modify the remote files with emacs. The problem ...
1
vote
0answers
51 views

sshfs: experiencing data loss

I am connecting to a filesystem on a remote server via sshfs. What I do is just to modify these files with emacs. From time to time I am experiencing data loss. While I work on a file and try to ...
5
votes
4answers
4k views

How to use ifconfig to show active interface only

By default ifconfig will show me all available interfaces , but what if I just want to display active ones? Like, en0 only in below. en0: ...
2
votes
2answers
1k views

Rename file in Mac OS Terminal using Regex

Hundreds of images need to be renamed with a terminal command using regex on MacOS 10.9 Mavericks. The files are named this way: 0045AW489R3T(IPCAM)_0_20131124101245_931.jpg ...
2
votes
2answers
83 views

OS X: how to keep the computer from sleeping during a http connection

An application I use downloads data from a specific server, and I need it to sleep after the download has finished and the socket is closed. However downloads take place at random days, the app that ...
3
votes
1answer
1k views

Get the current volume level in OS X Terminal CLI?

I would like to check the current volume level from the CLI on my Mac. I know I can set it like this: osascript -e 'set volume <N>' But that doesn't seem to work when trying to get the ...
0
votes
1answer
27 views

Weird logging behavior in Berkeley mail on a Mac

I use Berkeley mail (/usr/bin/mail) on an iMac. It has just started behaving in strange ways. If I type "~v", to open an editor, I get "[LogLevel VERBOSE]" or sometimes "[LogLevel DEBUG]" and the ...
1
vote
0answers
44 views

Preserving owner/group on OS X-provided CIFS shares

I read the attached StackExchange link: Automatically disable Linux extensions for Samba mounts about disabling CIFS Unix Extensions in order to mount OS X CIFS shares. However, my understanding is ...
1
vote
0answers
116 views

Getting g++ to work on Mac with Xcode

In trying to get g++ to work in terminal I ran a command which I have now learned is outdated. I think this is why running g++ in terminal returns an error but I am unsure. If I try to run any .cpp ...
1
vote
1answer
97 views

Make terminal print name of parent process OSX [closed]

Slightly above n00b, but not by much. I made an alias to search for and display all of the processes associated with a specific user account that seem to auto initiate every time I log in, which are ...
1
vote
1answer
605 views

startx from mac osx to RHEL6

I am trying to get a GUI over ssh -X. My RHEL6 server did not have X Window System and a graphical desktop environment. So I installed using yum groupinstall "X Window System" Desktop. It installed ...
1
vote
1answer
2k views

How can I change my bash prompt to show my working directory?

I can print my current working dir like this myPrompt$ pwd /Users/me/myDir I want my shell to look like this /Users/me/myDir$ pwd /Users/me/myDir Is that possible? How can I do it?
2
votes
4answers
2k 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
1answer
382 views

Why a sleep 300 (5 minutes) can last several hours some time? [closed]

I have a MiniMac with the OSX system. My script is: while true do echo "Sleep 300 seconds = 5 minutes" date sleep 300 echo "end of sleep" date done I want it to repeat every 5 minutes; ...
0
votes
1answer
39 views

Login retrieval in osx [duplicate]

I got an old Mac G4 (powerPC) from the company who wanted to put it in a bin. The company agreed that I can take it home for private use. It is running an early version of OSX but because it is old ...
0
votes
1answer
38 views

Unexpected output after switch to root

Does somebody know, why I get -ne (probably param from echo from section of setting PROMPT_COMMAND line 23) after I switch to root? Here is my /etc/bashrc. Bash 3.2.51, OS X 10.9 ...
0
votes
2answers
39 views

Merge source files with destination, replacing older ones

I'm looking for the linux equivalent of the DOS command: xcopy from/* to/* /s/e/d/y Which copies over all new files and only replaces old ones. I'll be running this from the terminal of a Mac OSX ...
2
votes
1answer
67 views

Compiling programs to OSX

I have to decide between a MacBook Pro or an iMac. I have a desktop with Ubuntu and I love it. I have experience with terminal and I install texlive, TeXstudio, Bluefish, Geogebra, wxMaxima, gnuplot ...
0
votes
1answer
794 views

Trying to cp a path with spaces, fails when scripted but echoing and pasting succeeds? [closed]

I have a script that is trying to copy a directory from a path that includes backslash-escaped spaces and is stored in a string variable to a subdirectory of the working directory. When I run the ...