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
7 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
38 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
17 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
18 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 ...
1
vote
1answer
30 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?
0
votes
0answers
14 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
58 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/
2
votes
0answers
36 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
35 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. ...
1
vote
1answer
156 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? ...
0
votes
1answer
38 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 ...
8
votes
2answers
157 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?
4
votes
1answer
1k 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
130 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 ...
0
votes
1answer
92 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 ...
0
votes
4answers
122 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 ...
2
votes
1answer
170 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
1answer
19 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
323 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
11 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
34 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
68 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
108 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 | ...
1
vote
2answers
642 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 ...
3
votes
2answers
151 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 ...
0
votes
1answer
138 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 ...
5
votes
1answer
419 views

File can't be moved by root on OS X

I tried to move a few files to a subfolder on OS X. One refused to move. It said Operation not permitted. I tried again as root: $ sudo mv file subfolder/ mv: rename file to subfolder/file: Operation ...
2
votes
2answers
112 views

All text boxes : The opposite of ctrl+v (like in emacs)

I like using ctrl + v on mac for jumping with the cursor to the next screen - something like page down but the cursor moves too. Do you know any way to do the opposite - jumping to the previous ...
3
votes
1answer
473 views

Is there any port of start-stop-daemon for OS X?

I am trying to use some init.d script under OS X and I while some are just working properly, I discovered quite a few that to rely on /sbin/start-stop-daemon and I am looking for a port of it for OS ...
0
votes
0answers
40 views

What is the total size of all MacPorts repositories?

How to calculate the total size of all MacPorts repositories?
11
votes
1answer
238 views

How does iOS delete a file technically and can it potentially be undeleted?

We have an interesting discussion here about file deletion on iOS devices. The question was: if I delete a file using NSFileManager, what's happening under the hood? My understanding is that deletion ...
1
vote
1answer
103 views

System event key codes not working on thunderbolt display

My AppleScript works when I am just using my MacBook Pro Retina, however if i have my Thunderbolt Display attached the script does not work. Here is the script which works perfectly on just the ...
1
vote
3answers
787 views

How do you change your UID in OS X Mountain Lion

kimvais @ kimvais ~ $ id uid=501(kimvais) gid=20(staff) ...
7
votes
1answer
175 views

Why are Mac files able to have multiple owners?

Regarding Unix file permissions, which Macs use, why are Mac files in particular able to have multiple owners? For instance, you can view the "Get info" panel of a file, and under the Permissions ...
2
votes
1answer
1k views

How to update Python on a Mac with Unix commands

After giving up on doing a disk partition and getting Linux, I decided to try and install Python 3.3.2 on a 32 bit Intel Core 2 Duo iMac with OS X 10.6.8 Snow Leopard. I did pretty much everything the ...
4
votes
2answers
756 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 ...
1
vote
3answers
91 views

Writing to plist file multiple preferences same time

I need to write about 50 preferences to a .plist file. Is there any way to write just once to plist file? My current code has 50 defaults write lines. do shell script "defaults write testing.testing ...
0
votes
1answer
131 views

How to specify group id for a user-defined group

When I set up my accounts in Snow Leopard Server, I was able to give an explicit group id to my user-defined groups using the old Workgroup Manager. Now that I've updated to Mountain Lion Server, I ...
0
votes
1answer
33 views

publickey error using cvs

I'm trying to get a copy of the repository for scrotwm using their cvs repository, but I'm having some trouble. I'm running the pull according to this example: ...
0
votes
1answer
374 views

Downloading multiple files with curl with different proxies

I'm trying to download multiple urls from different domains using different proxies. It should do all these in one row of code, running curl just once: do shell script "curl --proxy 1.2.3.4:800 ...
0
votes
2answers
84 views

How to find files not containing comment x?

I try to find all "*.xyz" files in folder x which does not have comment "abc". This code does the opposite. I would prefer to use Spotlight if possible. How i can do this? Thanks do shell script ...
0
votes
0answers
46 views

Mac Single User mode view flash drive

After accidentally deleting /etc instead of /efi (rEFIt stuff), I left my mac Unbootable. I have a flashdrive and I want to copy a few files to it in single-user mode before I restore the system. I ...
1
vote
0answers
111 views

Touching files in correct order

This code touches files in alphabetical order. I need to touch files in order it is in list_of_files, so first it touches file2, then file3, then file1). Is there any other way to do this than to ...
-1
votes
1answer
39 views

Creating preview and icon for screenshots [closed]

I would like to make this code to automatically create preview and icon so it looks nice in Finder and so i don't have to wait my graphics app to create these things when i first time open in browse ...
6
votes
1answer
745 views

Adding a song file to iTunes via the command line without playing the file

I want to add song files to iTunes via the command line. open -a iTunes -g song.mp3 does exactly this. - However it starts playing the song, too. Any way to avoid this?
1
vote
2answers
148 views

Reason why applications aren't stored in the Home-Folder?

I wonder why Apple don't put all applications in an applications folder inside the Home-Folder. So they could offer a hole new mac for each user. Every file is user specific, except for the ...
1
vote
1answer
387 views

Where do I find the full man page for afplay

In Terminal afplay -h shows full help text but the man page shows hardly nothing. Is there any way to get a longer help page for man afplay? I never use Terminal and it would be much easier if i ...
3
votes
1answer
170 views

Is there a maximum length of metadata that can be written in one xattr command?

Is there any text length limitations for how long text can be put to xattr? I plan to put my AppleScripts source code to script files so Spotlight can find it. Using Finder Comments isn't an option ...
3
votes
1answer
424 views

“opensnoop” utility doesn't work with spaces between filenames, how to fix?

I use "opensnoop" /usr/bin/opensnoop to show all files which are opened from different processes. But when I want to specific a file with sudo opensnoop -n "directory/filename" i'm getting ...
2
votes
1answer
71 views

How to get inode from alias file?

In this MacWorld forum thread aliases are described as Aliases can reference an object in the file system either by a persistent ID or by path. Generally they will contain both pieces of ...