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

4
votes
2answers
4k 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 ...
0
votes
1answer
31 views

Completely restore root and home folder after many problems with Macports and Homebrew

I had a long day battling with installing a LAMP environment with Macports. I installed several things, had many problems, tried uninstalling them (not sure if I did), and on and on. Then, I tried ...
1
vote
1answer
22 views

How can I inspect the environment variables of a running process?

Is there some equivalent (CLI or GUI) to Linux's /proc/$PID/environ feature?
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 ...
0
votes
1answer
35 views

What does the @ sign and the number next to it mean in ls -l display?

I got the following output when I apply ls -l command in my Mac OS X Mavericks for an image file: I understand what does -rw-r--r-- mean. But what does the @ sign and the number next to it mean? Is ...
0
votes
1answer
25 views

Where is the documentation on /tmp?

I've read that /tmp will automatically have files deleted that are older than 7 days or upon restart, but I can't seem to find where this is documented. Can anyone point me to a man or web page from ...
0
votes
1answer
40 views

How to uninstall wget

I recently installed wget on my Mac using the instructions listed here: http://osxdaily.com/2012/05/22/install-wget-mac-os-x/ and lorcan's instructions here: How do I get "wget" for Snow ...
0
votes
0answers
30 views

How does one reverse engineer how the Finder performs an operation?

I'm trying to figure out how OS X implements it's secure empty trash operations and it seems like I should be able to get more finely grained information than what the process monitor tells me. The ...
6
votes
1answer
178 views

/usr/sbin/uninstall? What is it/what does it do?

There's a /usr/sbin/uninstall command on my system. What does it do? There is no man page, and running it says "You must be root to run this tool.", and (after sudo uninstall -h) it says "URL is ...
6
votes
6answers
350 views

How to prevent the application launched in Terminal from undesirably exiting?

I launch applications from the Terminal with commands like this one : /Applications/Mail.app/Contents/MacOS/Mail & The important part is the &. For Unix / Linux / Solaris : I have ...
1
vote
1answer
33 views

Error when mounting sparse bundle from terminal

I picked up this command on how to open a disk image and have the password prompt in the terminal window (useful for remote mounting):hdiutil attach -stdinpass /path/to/image source However, it's not ...
2
votes
1answer
967 views

What is standard for os x filesystem? e.g. /opt/ vs. /usr/

What does and should go into /opt/ and what should/does go into /usr/? My understanding is that /usr/ used to be for user home directories, but since that exists in /Users/ - what is the purpose now? ...
2
votes
1answer
135 views

Super and admin user in OS X

Superuser account is disabled by default in OS X (Mavericks). But if you run sudo -l you will come to know that the admin user can execute all superuser commands. Then what is the point of disabling ...
1
vote
4answers
2k views

How do you change your UID in OS X Mountain Lion

kimvais @ kimvais ~ $ id uid=501(kimvais) gid=20(staff) ...
7
votes
5answers
51k 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 ...
1
vote
2answers
67 views

What is CUPS on port 631?

I recently ran an NMAP scan of my Mac's open ports and discovered port 631 (ipp) was open. Intrigued, I saw it was for the CUPS web interface, and after enabling it I found it had something to do with ...
2
votes
1answer
246 views

How does this complex BASH shell script work?

Apple Support Community member Linc Davis developed this command to aide in diagnosing issues. The output gives a general overview of one's system and is very similar to the program etrecheck. But, it ...
2
votes
1answer
42 views

Sending specific keys when using Remote Desktop UNIX commands

I would like to script the uninstallation and reinstallation of Profiles on a group of Networked Macs. In order to do this I shall use the UNIX Command part of Remote Desktop. When sending the ...
1
vote
4answers
10k 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
3answers
385 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 ...
0
votes
1answer
103 views

Whats the equivalent of the unix tree command on OSX

Whats the equivalent of the unix tree command on OSX (10.8.5)
0
votes
1answer
13 views

What is a CPX port or driver?

What is a CPX port? More specifically what is CPX as relates to a Datacard embossing printer? A buddy dropped off an ancient Datacard 150i embossing machine with me to see if I could get it working. ...
3
votes
1answer
101 views

Can't write to ~/Library, even though permissions look OK

I'm totally stumped on this one — a Macbook Air, 10.9.2. As far as I can tell, I should be able to write to my Library directory. Everything I can see suggests I should be able to: [njvack@zot ...
1
vote
1answer
20 views

grep doesn't give the correct offset?

Trying to get the bytes offset of a text word in a binary file (with some text here and there). I need to know the offset of this word from the beginning of the file. I'm wondering if on osx the ...
1
vote
1answer
50 views

Anyone knows how to view the nice value of a process under Mavericks?

Used to be able to view the UNIX nice value of a process in the top CLI utility. I think it's gone from the top utility on Mavericks? Any other ways to view it?
1
vote
1answer
19 views

How can I find a changelog of core utility versions in OS X?

I often research what utilities are available on different POSIX-like operating systems in the interest of portability, but I haven't been able to find a stable listing of what versions of various ...
0
votes
0answers
20 views

Convert absolute symlinks to relative ones?

I've seen plenty of threads on the Internet about doing the opposite, but what I want to do is, given a folder: /Lib/Foo/Bar.framework/Versions/1.5 And a symlink to it: ...
0
votes
2answers
105 views

how to configure Surfraw on OSX?

Has anyone had success configuring Surfraw on OSX? How do I get a working configuration for OSX? http://www.surfraw.org/
8
votes
2answers
193 views

Piping multiple commands

I would like to run the following command and pipe stout of both to TextEdit: pmset -g; echo; pmset -g assertions | open -f -a TextEdit This doesn't work, it only executes the latter: How?
2
votes
0answers
51 views

Why is Terminal.app corrupting my tcsh history?

I've had an ongoing problem that appears to be specific to OS X and Terminal.app: periodically, I get garbage in my tcsh history that looks like this: ^[[1m^[[4mcomputername:~/Code/emacs-source ( ...
0
votes
0answers
55 views

Latex xdvi Error

I am new to Unix and am trying to use LaTeX. I am having a problem with xdvi. Every time I try to use it I get the error message: Error: Can't open display: I have a mac and I have Xcode installed. ...
0
votes
1answer
148 views

ARD and dockutil?

This is probably a pretty noobish question, but here goes... I've recently discovered Kyle Crawford's dockutil, but I can't make it work with Apple Remote Desktop. Or rather: I can't make it work ...
4
votes
1answer
3k views

Sudo keeps asking for password, despite that NOPASSWD already set

The following sudoers configuration used to work well in MacOS 10.8.5, several days ago I upgraded to Mavericks, NOPASSWD flag does not seem to work anymore: # User privilege specification root ...
5
votes
2answers
142 views

Where are all of the command line tools installed?

I was playing around to set up a prober working/development environment. I installed command line tools such as: NodeJS NPM Grunt Bower Where can I find those tools and how can I delete them? 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 ...
0
votes
4answers
142 views

How to get to know OS X/Unix better? [closed]

Not sure how to ask this but this problem has troubled me for so long. I'd long been a DOS/Windows user until about 12 years ago when Mac OS X first came out I turned to the Mac, and stayed here ever ...
1
vote
1answer
134 views

What is lsof -i | grep -E “(LISTEN|ESTABLISHED)” composed of?

I got advice to check if an iTunes app sends data to the cloud using this command line lsof -i | grep -E "(LISTEN|ESTABLISHED)" Can someone please explain how this works? How does the pipeline work ...
2
votes
1answer
271 views

Securely delete guest accounts in OSX

I need a way to securely wipe guest accounts accounts off of my machine. On OSX, guests are automatically deleted on logout, with this deletion being done using the "RM" command. I need a way to alter ...
1
vote
2answers
734 views

Symbolic links, why doesn't this work:

me$ ln -s ~/x/y/ ~/Desktop/ ln: /Users/me/Desktop//: File exists Why does this attempt at creating a symbolic link to ~/x/yon the Desktop now work? The only way I can seem to get something like a ...
1
vote
1answer
20 views

Weird logging behavior in Unix mail

I use Unix mail (Berkeley mail, /usr/bin/mail) on my 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 ...
1
vote
1answer
705 views

How to patch a file that resides in /Applications (patch can't find file to patch at input line)?

I am trying to patch 5 files within an Mac application bundle using the Terminal patch command. The files to be patch are specified using an absolute file path (the file name and path start with a ...
0
votes
0answers
12 views

Command Line Tips and Tricks [duplicate]

==>> What are the most useful Unix shell "one-liners" that you use? <<== Here are a couple of mine to get the conversation started: 1. Repeat the previous command with a substring replacement: ...
0
votes
1answer
40 views

TimeZone Issue during DayLight Saving

I just been bugged by the Day light saving hours I seem that 3rd November 2013 01:00:00 start EST time Now ever Time I set my time to 3rd November 2013 00:58:xx(some seconds) and run date it ...
2
votes
0answers
83 views

Poor X Windows performance

I use Macs a lot to host applications running on Linux boxes via X Windows, but tend to find that, after some period of time, I can no longer open new X Windows clients on the Mac - I get messages ...
2
votes
2answers
196 views

Parsing dates in Mavericks

I'm sure this used to be valid: $ date -d"2013-10-12T09:23:28+0100" +%h usage: date [-jnu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]] ... [-f fmt date | ...
6
votes
7answers
11k 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.
3
votes
2answers
229 views

Mac OS X UNIX-oriented Tutorial

Is there any Mac OS X tutorial/book that covers the UNIX part of this operating system? Topics like: Managing daemons from the command-line Package management Install/Remove dmg's from the ...
3
votes
3answers
17k 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
192 views

What is the purpose of “~/.adobe” directory?

I was cleaning my home directory and found hidden .adobe folder with two files in it: md5 containing only one line "F894CEFB…" userid containing also one line "424E8…" I deleted whole folder and ...
4
votes
2answers
2k views

How to strip a filename of special characters?

I have a file with a name such as "Today's Date.txt" What I am interested in is stripping away all special characters using the terminal such as: " - , ' ' [ The reason for this is because I ...