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

0
votes
1answer
23 views

How i can log various information of files in directory?

I'm looking for a way to get the following information via AppleScript: all the information ls provides including the creation date/time of a file or folder MD5 hash, Finder labels and ...
0
votes
2answers
210 views

Thread count of process x?

My AppleScript needs to get thread count of process x. I have tried many ps etc codes but all these are not working for some reason. I tried these: do shell script "ps uH p 301 | wc -l" -->" ...
0
votes
2answers
83 views

What is the maximum amount of file arguments I can pass to a command?

If I do this in OS X, what is the maximum amount of files I can test? Or is there a maximum length for this string? do shell script "md5 -q 'path/to/file1.txt' 'path/to/file2.txt'"
-1
votes
1answer
64 views

Deeper knowledge of os x? [closed]

I want to gain deeper knowledge of os x, which books/courses/forums should i take? All books that i have seen was about how to save your document in Pages. First of all, i will learn bash but what's ...
2
votes
1answer
201 views

how to get ls to list files in case-insensitive order?

How do I get the ls shell command to list my files in: case-insensitive order with the directories at the top? The reason I ask is: I want Aquamacs Emacs dired to list my files and directories ...
3
votes
1answer
220 views

Where is the New Oxford American Dictionary stored?

I'm trying to build a command line tool to look up definitions of words, it's only a dummy app for me to practise my C++ skills. I know there is a list of words stored at /usr/share/dict - but what ...
0
votes
1answer
2k views

How do I change the “primary group” for an existing user?

My current primary group (the gid I see listed by id) is me, rather than staff. I'd like to change it to staff, without changing anything else about my user account. How do I change the "primary ...
2
votes
1answer
48 views

What is the effect of permissions on external drives?

I've set the permissions on files on my removable external drives in ways that seem to make sense to preserve some degree of security. For example, for files that only I should have access to, I've ...
1
vote
1answer
118 views

Where should shell tools be installed?

Are there Apple guidelines for where user shell tools in Mountain Lion should be installed? Some (e.g. TeX, or Apple's Git) end up in /usr, and others (e.g. X11) seem to end up in /opt (sometimes with ...
4
votes
2answers
3k views

Editing System Preferences via Terminal

Am looking to edit system preferences settings via the command line but cannot for the life of me find the correct names of variables. In Login Options under Users & Groups, I would like to be ...
3
votes
1answer
223 views

Opening an OS X disk image with a launchd agent while the display is sleeping

I created a launchd agent which opens a non-password-protected sparse disk image (and mounts its solitary volume) daily at 2:45AM in preparation for backup software to write to the volume. The launchd ...
1
vote
2answers
92 views

I maintain my Unix website on, presently, a Mac. Can I maintain it from a (not jailbroken) iPad 3?

I have a website at JonathansCorner.com, which for the most part is a static collection of files, mostly HTML5, served up by a Linux Apache server. Maintaining it is mostly a matter of creating new ...
7
votes
5answers
38k views

Copying ISO file to USB drive in OS X?

I have tried to copy an ISO file to a USB drive. I am unable to do it with Disk Utility. How can I copy the ISO file to a USB drive? But I get the below. I have enough space in the 16GB USB drive ...
2
votes
1answer
46 views

How can I (re)create development and build tools on a corrupt installation?

On my previous computer I had Xcode working nicely; on my present computer, with Homebrew installed, gcc and make are present in /Developer/usr/bin but not /usr/bin. On the whole when I try to ...
-2
votes
1answer
451 views

Running *ix Commandline tools in Macbook Air? VNC? Virtual-machine? Usable or too slow? [closed]

I haven't used OS X since an awful experience with its commandline tools and CD Xcode about 2009, that time getting rid of all Apple stuff but coming back after iPhone/iPad/FaceTime/iCloud/etc. Now I ...
1
vote
1answer
247 views

How to use a UNIX console app

I downloaded a port knocking script from http://www.zeroflux.org/projects/knock It downloaded a file knock, which is a Unix Executable File. When I double click on it, it runs the Terminal, where it ...
1
vote
3answers
9k views

Xcode for iPad?

I don't have an Apple computer, only iPad and Debian computer but I still would like to add a feature to iOS app here. Earlier I found out that I can download Xcode, more here, from Apple Store. Now I ...
1
vote
2answers
102 views

How can I do the equivalent of a Unix find / -print [under user permissions] under Mountain Lion?

I am doing, or trying to do, a 'find /' which I would like to recursively list every file the user has permission to access under the volume "Macintosh HD" and nothing else. I am presently filtering ...
1
vote
1answer
536 views

How to fetch an AirPort/Wi-Fi password using /usr/bin/security

I have been trying to use /usr/bin/security rather than hard coding login/password information into scripts. For example, here's how you get the password for 'pinboard.in' security 2>&1 ...
2
votes
1answer
340 views

Compiling LaTeX in Apple products: is something like pdflatex around?

My Apple friends says that they cannot compile LaTeX. I don't have a Mac at hand to test what the problem is. How can I get something like pdflatex to get LaTeX compiled on a Mac such as a MacBook ...
1
vote
2answers
332 views

Sshfs or its substitute in Apple products?

I instructs my Apple friend to get Sshfs, i.e. to mount an outside target, to home -directory but he cannot find sshfs for Mac. Dose there exist some substitute or some Apple-compiled version for ...
2
votes
1answer
265 views

How does Apple achieve such an ultra fast boot up?

I'm a recent Mac user (MBP) and the booting time really surprises me. Within few seconds, from complete power down, the OS prompts you to log in, then the rest just flies! And even faster recovery ...
0
votes
0answers
2k views

How can I ask Mountain Lion to have apache2 recognize .cgi and execute it as a CGI script?

I've upgraded from Lion to Mountain Lion, and have noticed as a result of the upgrade, besides my screen saver saying it won't work on this version of OSX, Apache is displaying the private web ...
0
votes
1answer
141 views

Getting .profile to execute after .bash_login

When I installed RVM, it turns out that it created .bash_login with this: [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session as a function ...
0
votes
1answer
39 views

My home folder opens up Photo Booth when clicked on

For some reason when the icon for the home folder is clicked it opens up photo booth. I changed what application it uses and the finder stays open. I tried fixing permissions and checking the hard ...
1
vote
1answer
433 views

Why can't I chmod to make a file executable without sudo?

On OS X 10.6.8, I made a small script file in my home directory and tried to make it executable. Surprisingly, I found that chmod had no effect until I ran it as super-user. I own and have write ...
3
votes
3answers
15k views

How do I delete a BootCamp partition using Terminal's diskutil?

For some reason, the BootCamp Assistant app won't let me delete my BootCamp partition. How can I do so using Terminal and the diskutil terminal app?
0
votes
1answer
948 views

How can I have Qt Creator to recognize my environment variables?

I use Qt Creator as my main IDE for cross-platform C++ application development. In doing so I had set it up so that it depends on a set of environment variables that I define in .bashrc. On Linux ...
1
vote
1answer
1k views

How do I get a Unix Executable File to run from anywhere, like Java or Git?

I've just created my first Command Line Tool in Xcode. What do I have to do, or where do I have to put the final output file, so that I can run it from anywhere from within terminal, without having ...
2
votes
4answers
3k views

How to find all files that are larger than 1GB on the Mac HD?

It seems that either one of these commands can be used: sudo find / -size +1G sudo find / -type f -size +1G But when it gets to /Volumes, it actually look at all the back up files by Time Machine ...
1
vote
1answer
28 views

What is the recommend location for storing compiled binaries for NON-admins?

I know that administrators should be installing such binaries in /usr/local/bin, but what if a user doesn't have admin access? And/or what if a user wanted said binaries to travel with their home ...
2
votes
1answer
356 views

bash file recovery?

I think I messed up my bash file /bin/bash when trying to create my first script, it displays a message saying "process completed" and locks my terminal, if I switch to another shell e.g sh, then it's ...
9
votes
1answer
3k views

What is the difference between the sudo and su command?

What is the difference between the sudo and su command? Why does OS X handle these different than Linux?
2
votes
3answers
225 views

What tools exist to recover a file I clobbered using cpp in terminal?

I accidentally typed cpp Scriptname.py DestinationDirectory, intending to copy the Python script into the folder. I realized afterward that I should have used cp, but now my Python script is ...
1
vote
2answers
1k views

Problem trying to install iftop via Homebrew

I got Homebrew installed, but: >brew install iftop ==> Downloading http://www.ex-parrot.com/~pdw/iftop/download/iftop-0.17.tar.gz File already downloaded in /Volumes/0/z/Library/Caches/Homebrew ...
3
votes
3answers
7k 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 ...
1
vote
1answer
702 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
2k 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
461 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
235 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
572 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
271 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
408 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 ...
2
votes
4answers
454 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
364 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
1k 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
215 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
354 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
5k 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) ...