0
votes
1answer
17 views

Remove file extension in OS X using Terminal

Problem: I have some 200+ files named something in line with "DSC01852.JPG.jpg". I would like to remove the file extension so the result becomes "DSC01852.JPG". Any suggestions? I looked at the mv ...
1
vote
2answers
34 views

Is it possible to run software as a different user under OS X Mountain Lion?

I've been trying to run apps as a different user. Attempt 1 sudo -u otheruser open /Applications/TextEdit.app launches the app but it uses the current user, not otheruser. Attempt 2 login username ...
0
votes
0answers
24 views

Ability to setup ask for password for longer than 4 hours?

Is there a way to way to set the delay for longer like 8-10 hours? I have a wakeup sunrise app that i love, but had to remove password for it to work. But i could set the delay to 8 or 10 hours it ...
3
votes
2answers
85 views

How do I back out of sudo privileges in OS X

Is there a command to de-elevate the user from sudo permissions after I execute a command such as sudo pmset sleep 0 so that when I try to execute another sudo command it asks for my password again? ...
5
votes
3answers
138 views

Can't assign to PS1 on OS X bash

I'm trying to set up PS1 so it displays the branch name on git: user.name:some/repo (master) $ However, nothing I do seems to work. Even when I just try assigning to PS1 directly, it doesn't work: ...
1
vote
1answer
173 views

Set Adobe Reader as Default for .PDF documents in Mac OSX 10.8 via the Terminal

I would like to know how to set the .PDF file extension to be associated with Adobe Reader as the default program by setting this via the terminal in Mac OSX 10.8. My reasons for needing to this this ...
3
votes
2answers
150 views

sudo - for what is it required in osx mountain lion?

New mac user here. I tried creating a symlink (installing x11) in /opt: ln -s /opt/X11 /usr/X11 But permission is denied. Obviously I can probably use sudo, but how do I know when doing so is ...
1
vote
2answers
161 views

Fix Mac OS X bash

When I start my Terminal I get this error. I have no clue how to fix that and where it comes from. Last login: Fri Nov 30 21:46:06 on ttys000 -bash: export: `/usr/local/bin': not a valid identifier
1
vote
0answers
607 views

Pass arguments to osascript via shell function in OS X Mountain Lion

The answer in How to open a new Firefox window with URL argument is broken in Mac OSX Mountain Lion (10.8.2). I can't comment on that answer or question, so I had to create a new question. It fails ...
1
vote
1answer
870 views

Mountain lion and git-completion

I have ML with Xcode installed tools (git coming from there). Later I've installed brew and install bash-completion, but git commands still not auto-completed. Brew has no such package. Google does ...
1
vote
1answer
227 views

script for auto adding routing table entries

I work for a company that has a lot of remote agents that use mac's. Before we will move them to mountain lion, we had to address the VPN issues we were having. We deal with a lot live media and ...