Terminal (or Terminal.app) is the program included in Mac OS X for running applications and issuing commands using the command line interface. These programs are controlled by typing lines of text, rather than using the mouse or keyboard commands in the usual graphical user interface (GUI).

learn more… | top users | synonyms

1
vote
1answer
39 views

Error: “The operation can’t be completed because one or more required items can’t be found. (Error code -43)”

I accidentally pulled an NTFS hard drive out of my Mac OSX Mavericks machine several times and realized that I accidentally created multiple entries of many different names in my /Volumes/ folder. Now ...
1
vote
0answers
15 views

How to prevent TextEdit from commandline to cause Developer Unknown warning?

Is there any way (other than disabling Gatekeeper through preferences) to allow TextEdit to open my shell-script from a command-line? I'm more than ok with a dialog warning me, but the current dialog ...
0
votes
0answers
29 views

How to Access Shared Computer Through Terminal?

I have Mavericks on my Mac and wish to set up Unison between it and an old PC (vaiolaptop) running Windows XP on my network. How so I specify the path to the remote machine? It appears like so in ...
3
votes
1answer
99 views

How can I define CLASSPATH variable

For a school assignment I need to add a folder to my classpath. It says that I should do this by adding a line to the file .bashrc. However, this file doesn't appear to exist in my computer. I also ...
0
votes
0answers
24 views

DNS Lookup Failure on Terminal Only (Mavericks)

I recently did a clean install of Mavericks, and ever since I have, I've been having intermittent DNS lookup failures on the terminal only. Browsers work fine (Chrome, Safari). But nothing works ...
7
votes
3answers
9k views

How do I mount ejected external USB flash storage?

Suppose that we connect our flash USB drive to a MacBook, then eject this storage from Finder sidebar. Now I want to remount this storage without unplugging and replugging it into the computer, but ...
0
votes
0answers
21 views

Overtype mode in command prompt

As a linux/windblows user, I am used to switching temporarily to Overtype Mode when using the command prompt. As a new user to the mac world, I do not know how to change text input mode from normal ...
14
votes
4answers
40k views

Why does OS X Mavericks block the purge command in Terminal?

When I try the purge command on my terminal, OS X Mavericks gives me the following message: Unable to purge disk buffers: Operation not permitted This hasn't been the default behavior until now. I ...
1
vote
1answer
20 views

Trying to get Sublime Text 3 working from terminal

I am trying to get the Sublime Text to work with Git from the following tutorials http://www.sublimetext.com/docs/3/osx_command_line.html and ...
2
votes
1answer
31 views

Terminal sometimes scrambles initial output

I switched to iTerm 2 a while ago, but would like to fix this small problem that I have with OS X's built-in Terminal. Terminal is supposed to look like this when it first opens on my machine: ...
0
votes
1answer
35 views

How to move IOUSBFamily.kext file in trash back to to System/Library/Extensions using Terminal in recovery mode

Im toying with my Mac. I restarted the system forgeting to return the file, How can i move it back or restore without having to reinstall the OS.
8
votes
2answers
169 views

How would I go about making a stand alone app on my dock to open a game using a terminal command?

I have a game that they never released for mac, and I installed the game using WINE, the install itself was flawless, but every time I want to play it, I'm forced to open Terminal and run cd ...
1
vote
1answer
18 views

How to automatically tag file by name or extension

I was wondering if there is a way to automatically tag a file as it reaches your computer, like downloads, copying from an external drive, etc. I would like to simulate gmail filters, like labelling ...
1
vote
1answer
1k views

LSOpenURLsWithRole() failed with error -10810 - Downloaded app does not start

I'm trying to run an application downloaded from the internet (e.g., Jabref) but it seems that it fails silently. When I try to open it by double clicking it, nothing happens. When I use the terminal ...
7
votes
3answers
2k views

Why don't my arrow keys work in vim under iTerm?

They work just fine if I use Terminal and start a vim session, but under iTerm I have to resort to using H-J-K-L to do left-up-down-right movement. In both Terminal and iTerm TERM=xterm-color. My ...
1
vote
2answers
1k views

Is there a way to have something similar to Cygwin on Mac?

I'm a web developer using a MacBook Pro running OS X 10.9.3. Before I started developing in a Mac, I used Cygwin on a Windows machine to see what was happening behind the scene on my web application. ...
0
votes
0answers
45 views

Move full screen app to the LEFT of first desktop in 10.9.4?

I am part of the Apple developer program, and received the 10.9.3 beta before the full release. In that version, I could place a full screen app to the LEFT of the first desktop. My setup was to have ...
1
vote
1answer
62 views

Error during WebSocket handshake: Status line contains embedded null (using livereload, node-inspector, and karma)

Whenever I run something in my Terminal that requires a websocket to a browser (livereload, node-inspector, karma), I get the following console error "Error during WebSocket handshake: Status line ...
0
votes
1answer
26 views

Why am I unable to set new command prompt for terminal?

Why am I unable to set new command prompt for terminal in OS X Mavericks? I've tried to do the following: export PS1="\u \W$ " It works as expected but after restart the default value of PS1 will ...
1
vote
1answer
38 views

'localhost' stoped working as an alias for '127.0.0.1' for SSHing into my VirtualBox VM. Why, and how to fix?

The question explains the problem. For months I've never had any problems along these lines. Then, yesterday morning, I couldn't get into my VM! Took a long time to troubleshoot but here was the ...
0
votes
1answer
33 views

How to prevent MacVim from inherenting .profile as if it was Bash itself?

I have this guard in my .profile: if [ -n "$BASH_VERSION" ]; then if [ -f "$HOME/.bashrc" ]; then . "$HOME/.bashrc" fi if [ -f "$HOME/.bash_aliases" ]; then . ...
0
votes
2answers
376 views

Navigate to a certain tab and close that tab in OSX Terminal

I've got multiple terminal tabs open, and I want to be able to close the current tab. How can I make the current terminal tab be the active tab, so that I can close that tab with ⌘+w? I am in the ...
7
votes
4answers
16k views

How do I execute a bash script that requires root privileges?

I have this script lines from my ISP: sudo bash echo "plugin L2TP.ppp">>/etc/ppp/options echo "l2tpnoipsec">>/etc/ppp/options It works if I paste line by line into Terminal. I want to ...
1
vote
4answers
3k views

How can I create custom right click context menu items in Mountain Lion? (“New File”, “Open Terminal Here”, etc.)?

I've been a native windows'er up until this year and have finally made the jump to OSX. I've found my workflow (web developer) has increased substantially and I love the general performance and ...
2
votes
4answers
10k views

How do I exit python in the Mountain Lion Terminal?

I'm having a couple problems with basic command line stuff in the terminal of Mountain Lion. ^D does not exit Python as it does in Lion, instead it splits the screen. Meanwhile, I also haven't ...
0
votes
1answer
33 views

Why is same privileged bash command giving different information from script than from command line?

I wrote a bash script to verify various configs on a system, but I am getting different results depending on whether it is run from the command line directly or from the script. Here is the command: ...
0
votes
0answers
18 views

How do I enable an external display in Single User Mode via Terminal on a headless macbook?

I'm trying to troubleshoot video issues on macbook laptop with no display or a dead? display but can't see what I'm doing. I need a Terminal command to run 'blind' after I boot into Single User mode ...
11
votes
2answers
9k views

How can I create a symbolic link in Terminal?

I know how to delete a symbolic link/soft link by using command rm in Terminal but I was wondering what command is used to create one?
0
votes
1answer
27 views

How do I get system_profiler output from a lot of machines in a network?

I need to have a script that will execute "system_profiler -detailLevel full" command in a remote mac machine. While this is going on, the user on the remote machine should not know that there is ...
3
votes
2answers
34 views

Using Alt/Cmd + Right/Left Arrow in iTerm

Is it possible to move between words in iTerm using Alt + Right/Left Arrows ? Now if I press Alt+Left I will get '[D' and '[C' if I press Alt+Right.
17
votes
7answers
8k views

Can home and end keys be mapped when using Terminal?

The home and end keys on a MacBook Pro can be emulated with fn + left arrow or fn + right arrow. Or when certain settings are changed, with the Command (Apple) key instead of fn. None of these ...
0
votes
2answers
3k views

How do I use arguments together with bash aliases

Today, I learned the very handy trick: man [some command] -t | open -f -a Preview I'd like to create an alias in my .bash_profile file as a shortcut. In order for this to work, I need to pass an ...
0
votes
1answer
15 views

How to get the content of a Resource Fork?

I want to get the stored resource fork. In PHP, I'm trying to: system('DeRez' . $_icon . ' | perl -ne \'m|/\* (.*) \*/| && print $1; END {print "\n"}\', $content); which in Terminal really ...
5
votes
3answers
4k views

How can I install themes for Terminal?

I am rather new to Mac, but I am trying to get familiar with Terminal and I want to change its theme. I am a bit confused on how to go about installing Solarized themes I am seeing so much of around ...
0
votes
1answer
54 views

Terminal malfunction when running some executables

Short version I overwrote /bin/sh with something else and now I am having issues with terminal. How/can I restore/reinstall /bin/sh? Long version I think I did something silly. I was searching help ...
1
vote
1answer
485 views

Opening new Terminal.app window/tab with a certain profile from command-line or AppleScript?

When I login to my Mac, I want to automatically open a new Terminal.app window with a certain profile, say Monitor, that has a startup command and several appearance settings. I thought it would be ...
3
votes
1answer
183 views

Uninstalling Genieo broke my system

Update below, the rest is more or less background information. After discovering a Genieo install, I vaguely recalled it being, well, not trustworthy. After a quick search I knew I wanted to ...
2
votes
1answer
30 views

Automatically stop a terminal script when locking MacBook Pro

I have written a bash script that I manually start when logging in onto the laptop, but I want it to stop running when I lock my laptop. This doesn't seem a very standard scenario, but I don't want ...
0
votes
1answer
38 views

Enable SMB sharing from command line

On OS X 10.8, using terminal commands, I'd like to enable SMB sharing as if I had ticked the following checkbox under System Preferences - Sharing - File Sharing - Options: I've tried the following ...
5
votes
1answer
47 views

How to use Terminal to send Keystrokes?

Is there a way for Terminal to simulate pressing multiple keys at once? For example, Shift + Ctrl + R? I am ssh into OS X from a windows client (PuTTY) and am wondering if I need to configure the ...
2
votes
2answers
450 views

Mount .sparseimage from .bash_profile

I need to mount a .sparseimage from .bash_profile but I don't get how to do it. I tried: alias of22='hdiutil attach "Documents/OF.sparseimage" -mountpoint "$HOME/OpenFOAM" > /dev/null ; . ...
0
votes
0answers
23 views

How to prohibit other languages than english in terminal

I am using some other languages other than English as input sources, every time I am opening my terminal and start writing a command I write it in a language other than English. I need to know if ...
14
votes
6answers
6k views

Start/stop internet sharing from a script?

Is there a way to start/stop internet sharing from the command line or maybe an apple script? The thing is that I move around my laptop between home and work. At one place I get wireless internet ...
1
vote
1answer
42 views

Automate mobile terminal?

I have a jailbroken iPhone. I use it to reboot my router when my wifi is going slow or messing up. But I'm lazy and I was looking for a way to automate the process. I use shortcuts that mobile ...
0
votes
1answer
30 views

sudo: unable to cache user root, already exists

Suddenly started getting this strange error when attempting to run any command via sudo: sudo: unable to cache user root, already exists I've tried different Terminal windows, repairing ...
2
votes
0answers
17 views

OS X / Finder - Right Click “New Folder with Selection” - how to Increase the Animation Effect Speed?

10.9.x Finder The effect that pulls all the selected items into a new folder from the right click "New Folder with Selection" is really nice, but way too slow for me. Anyone know a terminal command ...
4
votes
4answers
27k views

How do I set environment variables on OS X?

I have always difficulties setting the environment variables on Mac like JAVA_HOME, M2_HOME or PATH. How to set these on Mavericks OS X? I did some research but the answers I've found didn't really ...
8
votes
5answers
4k views

sourcing bash profile for root users

Apologies in advance if this question is going to annoy the hell out of everyone as I appreciate, it's been asked in various ways many times before. Please be assured, I have read the archives and ...
1
vote
1answer
647 views

“Missing Quartz Composition” displayed on TotalTerminal

I started using TotalTermianl on Mountain Lion. But the background have Missing Quartz Composition error. I have found some people had the same as mine here Do anyone know how to fix it??
0
votes
0answers
11 views

Terminal: Different Profiles, Different Startup Command

In Terminal preferences you can create different "profiles" under the "Settings" tab. After selecting a profile, clicking the "shell" tab will allow you to set a startup command. However, this is not ...