UNIX is both the underlying code and architecture that makes up Mac OS X / iOS as well as a way of interacting with a Mac using the terminal app, X11 app, and various shells like `bash` or `zsh`. Whether you're logging into a mac using `ssh`, using `mdfind` or `tmutil` or using other open source ...

learn more… | top users | synonyms

3
votes
4answers
8k views

How do I search all hidden files that are in hidden folders using Terminal?

I need to find some configs buried in some hidden folders and can't recall where they are to navigate to them directly Cmd+Shift+G. I did a sudo find -name Foo* (slow), but none of the returned files ...
2
votes
1answer
1k views

Homebrew installed libraries, how do I use them?

I'm a bit confused. I've installed a bunch of libraries (e.g. vtk, gsl,...) that I need for a c++ project for school. I used homebrew to install them (luckily there were formulas available). My ...
8
votes
4answers
3k views

Remotely SSH to IP address in home network

I've got a device at home I want to SSH to from work. The device has port 22 open locally and I have port 22 opened on my AirPort Extreme. However, on the AirPort Extreme it says the open 22 port only ...
1
vote
1answer
497 views

When does the arp cache get emptied?

does anyone know when the arp cache in OS X Lion gets emptied? Or which automatism causes it to get emptied? Is it a time period, which can be set somewhere? Thanks!
1
vote
2answers
242 views

How can I get Unix (brew/xcode/vim) acting like Unix under Lion?

I "upgraded" from Snow Leopard with Homebrew and vim both chugging along happily, to Lion. Now vim hangs/segfaults, and when I invoke brew, it complains xcode is missing, and continues to do so after ...
3
votes
2answers
695 views

SSH Key Error, sudo works fine

When I try to ssh (using ssh user@server.com) into my server at home from either the local network or from outside, I get the following error: But if I use sudo ssh user@server.com, it works with no ...
2
votes
2answers
218 views

Where do these Terminal commands come from?

I don't know any specific term for these Terminal commands, so i want to give an example: defaults write com.apple.dock itunes-notifications -bool TRUE With this command, you can enable an ...
2
votes
1answer
285 views

why isn't my environment variable visible from the command line?

I'm trying to run the james smtp server on Lion. When I do this ... sudo JAVA_HOME=/Library/Java/Home ./james-2.3.2/bin/run.sh ... it works fine. However, I'd like to make JAVA_HOME an ...
5
votes
2answers
496 views

Is there a UNIX-style triple click to select path in Terminal.app?

In Red Hat, if there is a path somewhere on my terminal window and I triple click it, the whole path is selected. I can then easily copy it using middle-click or a regular copy-paste. This doesn't ...
4
votes
4answers
596 views

Setting time format preference in unix (Mac-Terminal)

I'm learning to work in unix using Terminal on a Mac and I'd like to set the default listing for the timestamp to display in 12 hour time, using AM and PM, instead of 24 hour time (ie: 1:00 PM, not ...
3
votes
1answer
393 views

What is OS X's equivalent of Linux's NSS?

Anyone familiar with the internals of Linux knows about NSS; it's the subsystem that services, like gethostname() and such, delegate to. The code that actually makes DNS queries or reads /etc/passwd, ...
2
votes
2answers
2k views

where is the system wide $PATH set in OSX?

I'd like to set the $PATH variable for all users but don't find where it is defined. Having no $PATH export in my .bash_profile I have this ...
1
vote
1answer
222 views

What more does installing Homebrew allow me to do? [closed]

Homebrew is a useful tool to install UNIX tools. What are useful things to do with homebrew? What tools can you recommend?
0
votes
4answers
415 views

How to check the location of installed files when using Installer on Mac 10.6.7

I am installing a C++ library using the Installer application(its a .mpkg file) The installation is successful, but I cannot find the location of the library to set an environmental variable. I have ...
8
votes
2answers
6k views

Proper group ID (gid) for Lion?

If you create a brand new admin account in Lion, the following will be your id and group memberships (from $ id [new Lion account] | perl -lne 's/ /\n/g; s/,/\n\t/g; print;'): uid=504(lt) ...
6
votes
3answers
3k views

How can I manipulate several security settings from terminal?

I want to change these behaviors from terminal: Auto-login Showing password after screensaver and sleep mode Go to sleep mode after x minutes Enable screensaver after x minutes
1
vote
1answer
357 views

Map keyboard key to unix command

Simple I am looking for a way to map a keyboard key to a unix command. It could be as simple as literal as opening up terminal and pasting a required bit of text.
3
votes
1answer
3k views

Unknown terminal 'xterm-256color'

Keep getting a message in Terminal saying tput: unknown terminal "xterm-256color" This message typically appears when running homebrew, and while I can swear it's popped up on other places, I ...
3
votes
4answers
2k views

Using locate.updatedb doesn't work in Lion

A week ago I upgraded to Lion from Snow Leopard. I want to use the locate command, but the locate database has not been built yet. So I tried running sudo launchctl -w ...
4
votes
1answer
2k views

How can the 'mail' command be used?

I've had my first Mac for about five months now. Though, even when I was a full-on Windows user, I never did things through a command line; I was pretty much for the GUI all-the-way.. But now that I ...
2
votes
2answers
2k views

User changed to 502 on OSX

I have a small problem with my permissions. I use rsync frequently on a certain target directory, but one day I by accident I used "sudo rsync", and now all my permissions for the files in the ...
17
votes
4answers
10k views

Is there a way to convert audio files in Mac OS X or the command line without using iTunes?

Now, I know I can use iTunes to convert music. But it's quite a pain.. All I'm asking is: Is there anything built into OS X or UNIX for converting files? Right now I simply want to convert .mp4 to ...
2
votes
2answers
3k views

Installing gnuplot (or similar) on Lion

All the packages needed to install gnuplot through MacPorts on Lion succeed, except for aquaterm. Installing gnuplot through Fink is far less lucky on Lion. Fink bails out after only a third of the ...
0
votes
3answers
2k views

can't run GlassFish because something is using port 8080; but how to find it?

I develop on Mac (Lion) with Eclipse and GlassFish 3.1. GlassFish uses ports 8080 and 4848. Suddenly, when I try to launch GlassFish it tells me it can't because there's a port conflict. As far as I ...
0
votes
1answer
1k views

trying to run Apache James (email server) on Mac — getting “Permission denied” error — help?

I download Apache James email server on my Mac. I extracted the zip to a "james-2.3.2" folder. When I run "./james-2.3.2/bin/run.sh" I get a "Permission denied". I tried doing a chmod 755 on the ...
2
votes
3answers
1k views

Can you use the command line on a Mac to get to a networked Mac?

I have a networked mac desktop and a wireless laptop. I would like to use the desktop mac to test web pages from the laptop. The mac desktop has a php/mysql/apache server outside the router for ...
4
votes
2answers
5k views

Installing Homebrew on Lion

I am trying to install Homebrew on Lion but keep getting an error. $ /usr/bin/ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)" I run the above code, which results in: ==> This script ...
2
votes
0answers
528 views

Why does my Terminal window close automatically?

I need to use my Terminal window on a MacBook Air but it closes about 10 seconds after I open it. Is there a setting or is it possible another program is causing it to close? If I type quickly I can ...
9
votes
9answers
653 views

Which command-line packages do you need? [closed]

I generally have one of Fink, MacPorts, Homebrew installed. Most often for a single, small, and trivial package. I've found that all my day-to-day software exists in OS X versions. So, which non-OS X ...
3
votes
2answers
955 views

How to install TermKit on Mac? [closed]

https://github.com/unconed/TermKit command: git clone https://github.com/unconed/TermKit.git --recursive Prompt: fatal: https://github.com/LearnBoost/Socket.IO.git/info/refs not found: did you ...
8
votes
3answers
3k views

How do I change the time format used by ls command line on osx?

I want to make ls display time in ISO format (military format). How can I change this behavior? On Linux I knew that I could force ls to display time in long format by usin --full-time but this ...
9
votes
7answers
12k views

How to monitor file access for an OS X application?

I am looking for the OS X corespondent of FileMon, that was later included in ProcessMon. BTW, it is essential to be able to filter by process.
0
votes
1answer
2k views

Git: command not found during Git installation (Mac OSX 10.6)

I am trying to install Git on my Mac (OSX 10.6) following the official Git tutorial. I had no problem until I had to set my username and my email. Every time I tried I got "-bash: git: command not ...