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

2
votes
1answer
278 views

Forward slash doesn't work when in terminal… works in every other application

I'm trying to use terminal and in every tab I open, when I try to change directory such as cd / I get a beep and am unable to type the character. I am on the same computer and am able to ...
0
votes
0answers
13 views

“Lastb” command in Mountain Lion [duplicate]

I just got a new MacBook, coming from years on linux, and I must say: I love it. I am currently working on a personal project that relies on seeing previously invalid log in attempts. In linux, there ...
1
vote
0answers
66 views

Terminal wraps at 80 chars even if window is wider

Problem description If I increase the width of a Terminal version 2.3 (309) window, and then use less (or some command invoking less, like man) in that window, I often get garbled output, since the ...
1
vote
2answers
30 views

Why CMD+N opened new popup Terminal window doesn't follow the default preference?

I love Mac terminal in Dark and had set up the default color scheme to a dark one. Every time I open the terminal it's OK but I found that if I open one terminal window and then open another one via ...
1
vote
0answers
32 views

Can't use Alt+N in Terminal

I installed Zsh the other day but didn't like it so I promptly removed it. Since doing so however I'm no longer able to type alt+n to get a ~ character, whilst it works everywhere else. Yes, I know I ...
0
votes
0answers
160 views

Command line tools for OSX Mavericks unavailable after installation

I'd like to install TuxMath on my Macbook running OSX Mavericks. In order to do so I need to install command line tools. In the Terminal this can be done by xcode-select --install It tells me ...
0
votes
1answer
33 views

How can I set a shortcut to close the window of TotalTerminal

TotalTerminal is great. But, if it is not the active application, in order to close its window, I have to enter again the application. Is it possible to set a shortcut to close the window of ...
1
vote
1answer
165 views

Compiling / installing shotdetect for OS X

I would like to find scene changes in a video with this command line tool: Shotdetect is a free software (LGPL) which detects shots and scenes from a video. Dependencies are: sudo apt-get ...
1
vote
1answer
160 views

How do I route internet through local PPP connection I have on PTY terminal?

I'm doing this hack job where I have routed a cell phone's GPRS modem over to a local PTY. The proprietary debug software actually routes the modem over TCP, I then use socat to route it to a PTY ...
1
vote
1answer
170 views

Root crontab won't save

I'm trying to add a crontab entry to my root user's crontab. I'm able to add an entry without issue to my regular user's crontab, but when I su to root user and try adding a crontab entry it does not ...
2
votes
1answer
288 views

Use find in Terminal to remove directories and files of same search parameter

If I type the following into Terminal, it will remove all files that meet the search parameter: sudo find . -type f -name "*Xilisoft*" -exec rm -rf {} \; Then if I start again and type it with d ...
1
vote
2answers
3k views

Open terminal using a keyboard shortcut

I am using Alfred and hence I don't have any use for the Cmd+Space keyboard shortcut. I want to invoke terminal using that shortcut. Just like in Ubuntu, when you press Ctrl+Alt+T, is there a way to ...
4
votes
1answer
87 views

Find and replace with grep and perl

I'd like to grep and replace specific text in textfiles within a directory and all subdirs. I try the following: ls -R | egrep '.*\.txt' | perl -i -p -e 's/one.a/two.a/g' Although grep spits out a ...
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 ( ...
1
vote
1answer
29 views

How can I create 'gch.app' such that “open -a gch page.html” works like “open -a Google\ Chrome page.html”?

I type open -a all the time from the terminal, and more often than not the application I want is Google Chrome.app, so I end up entering things along the lines of: open -a Google\ Chrome ...
1
vote
2answers
251 views

Is it possible to use TotalTerminal with Go2Shell?

I am using TotalTerminal. Now, I want to use Go2Shell, so that I can access quickly a terminal in the good folder. But, when I click on the Go2Shell icon, it opens a usual Terminal and not a ...
0
votes
0answers
46 views

How can I hide the TotalTerminal Visor from the command line?

I am using TotalTerminal. I know that I can set hotkeys to show or hide TotalTerminal's visor, but is there a command I can put at the end of a command line to hide it? For example: latex ; ...
4
votes
1answer
107 views

xcodebuild firing after every terminal command

After every terminal command, the prompt becomes unresponsive for 2-3 seconds. During this time xcodebuild seems to be running: Where would this hook be that's causing the xcodebuild to be fired? I ...
2
votes
2answers
304 views

Does Mac OS X's bash read scripts for all users (tab-completion scripts) from /opt/local/etc/bash_completion.d path?

I stumbled upon some instructions in the book "Pro Git" It suggests: Download this file : https://github.com/git/git/blob/master/contrib/completion/git-completion.bash If you use the Bash ...
1
vote
1answer
78 views

Why are my Terminal.app colors different from iTerm?

I have set the ANSI colors of both terminals to be the same (see 1st screenshot), but the colors for Terminal.app are really bright, and almost unreadable, and not like the colors I set at all. It's ...
2
votes
3answers
329 views

How to stop being logged out of SSH sessions when locking the screen in OS X 10.9.1?

Every time I lock my screen I get logged out of any active SSH sessions. I've added the following to my ~/.ssh/config file, but I still get logged out: Host * ServerAliveInterval 60 How can I ...
8
votes
2answers
8k views

Why Mac OS X don't source ~/.bashrc [duplicate]

I found a lot of people figuring out why instruction similar to this : Put X to your ~/.bashrc and you can do Y don't work. It always turns out that Mac OS X's bash's startup files (or Mac's ...
2
votes
2answers
100 views

Can't open a file in sublime text using bash_rc

My bash_profile function looks like: function st() { /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /Users/ishan/workspace/nltk_engine/index.py;} However, when I do st in terminal, ...
0
votes
1answer
23 views

My keyboard shortcut System Preference panel doesn't allow me to create application shortcuts

My computer is a MAcbook pro and I am running Macosx 10.8.4 I just realized that the shortcuts don't work anymore in an application where I really need them. When I went to re-create them in the ...
1
vote
1answer
74 views

How to create an applescript for multiple dd terminal commands in sequence (for multiple USB Drives duplication)

I need to create an apple script to perform DD Commands in sequence, to replicate the same .img file to multiple USB flash drives The context: the computer is connected to a powered USB hub with 7 ...
1
vote
1answer
772 views

How do I kill a process that won't die?

I'm unable to kill a process using any of the techniques I'm aware of ("Force Quit" in Activity Monitor, top, killall from the Terminal) and wonder if there are some additional steps I can take. ~ ...
0
votes
2answers
433 views

“xcode-select --install” versus retrieving the dmg from Apple's developer website

I would to ask a question closely related to already existing posts (How to install command line tools without error that is not currently available on Software Update server? and ...
0
votes
1answer
91 views

What is the proper way to use the cut command on ps command output

This question is related to a question I posted on rogue firefox procesess. It relates to firefox processes following image uploads that I have been having for a while. I am trying to get to the ...
0
votes
0answers
41 views

How to get rid of remnant samba shares via the shell

I'm running 10.6.8, and under System Preferences > Sharing > File Sharing is checked, and I have no folders under the left side. Naturally the right-side isn't populated with any users. When I ...
1
vote
0answers
31 views

How to manually start a service without having a controlling terminal?

I maintain an application that runs as a background service, started either on boot as a StartupItem or manually from the command line. I want to know how to launch it manually without having a ...
0
votes
1answer
53 views

how to install hypre using terminal on OS X 10.9.1

I want to install the lastest version of Hypre. It must be safe So using terminal is the safest way. I have brew. My question is : How can I do this using the terminal ?
1
vote
1answer
208 views

Terminal won't open after brew upgrade (dyld library not loaded)

I ran "brew upgrade" from the terminal, before upgrading finished the battery ran out on my MBP and the computer restarted. Now when I go to open a terminal the terminal window flashes up for a split ...
1
vote
0answers
56 views

Adjusting Brightness, or executing any keypress, on remote computer via ssh

What are the options to target specific keys on a remote computer and execute the equivalent of virtually pressing them from the terminal via ssh (what would normally be a user pressing them)? ...
5
votes
2answers
174 views

How can I launch a GUI app in Applications folder from command line?

I would like to launch a GUI app that is in the Applications folder from the command line as opposed to clicking the icon in the Finder or in the Dock. The reason I want that is to be able to launch ...
2
votes
2answers
101 views

How do I change $PATH and set it to the default directory?

For some reason when I run echo $PATHI get the following directory: /Users/<home>/Library/Applications/. How do I set it back to its default location so that I don't have to run this command, ...
0
votes
1answer
44 views

Where to Install Applications when using Terminal? [duplicate]

I use the command line a lot to download and install applications. I've always downloaded into the /tmp directory then installed to another directory. But where is the place to install such ...
4
votes
1answer
5k views

Mac OS X Mavericks - add to path

I'm trying to set up a phonegap project and while trying to add a platform it outputs the following error: Error: The command "android" failed. Make sure you have the latest Android SDK installed, ...
0
votes
2answers
68 views

Universal path in Terminal

I'm writing an AppleScript that will allow me to copy the Time Machine folder from an external drive and paste it onto the user's desktop of their Mac. The reason I'm doing this is because when a time ...
8
votes
2answers
382 views

Login directly to terminal instead of GUI

First: I'm obviously not talking about logging in and then automatically launching Terminal.app. In older versions of Mac OS X, you used to be able to type >console in the username field on the ...
1
vote
1answer
928 views

how to remove ffmpeg ? and install again

I want to remove ffmpeg. Typed to terminal ..........$ rm ffmpeg rm: ffmpeg: is a directory ..........$ ffmpeg ffmpeg version 2.1.git Copyright (c) 2000-2014 the FFmpeg developers ...
4
votes
2answers
864 views

Why doesn't my Terminal show 'last login' message?

Terminal.app on my mac used to show Last login: <date time> on ttys000 as the first line. However, when I opened it this week, I noticed that it didn't show the message. Is this normal, or did I ...
1
vote
1answer
26 views

What is the source directory?

In the website http://gfs.sourceforge.net/wiki/index.php/Mac_OSX_Installation In this line: type from the source directory ./autogen.sh ./configure --enable-osmesa --prefix=$HOME/soft make ...
2
votes
1answer
60 views

How can I give a Space a custom name?

I'd like to give my Spaces helpful names like "Graphics" and "Communications" instead of using confusing, generic names like Desktop 1 and Desktop 2. Is there a way to accomplish that through a ...
2
votes
3answers
7k views

Install gcc to mac via Terminal

I have installed Xcode and the command line tools from the Mac Developers website, which I have read a few times is a prerequisite. I also installed the MacPorts program. In terminal: sudo port ...
0
votes
1answer
789 views

TERMINAL ~/.profile does not contain source ~/.bashrc MAC OSX 10.9.1

terminal shows below on this stage on gerris installation page : http://gfs.sourceforge.net/wiki/index.php/Mac_OSX_Installation Note: make sure that the file ~/.profile contains the line source ...
1
vote
1answer
31 views

Use different profile for a specific Terminal

When logging into remote server with Terminal, I need to use different profile. Is there any way to make the Terminal displayed with different profile? Better still, is there a way to recognize the ...
4
votes
1answer
211 views

MacOS, differences between running a bundled app and running the bundle's executable

Can someone elaborate the differences in OSX between running a bundled application by doing one of the following: double-clicking on it search for it and run it from spotlight open ...
1
vote
1answer
180 views

OS X application start/stop hook

How can I have a script automatically ran when I start or stop an app without using 3rd party tools? I'm not developing the application myself, it's a general question that applies to any installed ...
1
vote
1answer
240 views

OS X won't create any symbolic links, creates aliases instead

No matter how I try to create an symbolic link OS X refuses to play along and instead creates an alias. I've tried several tools and also through the terminal using the ln command. I am on a fresh ...
0
votes
3answers
181 views

Is it possible to enable mouse right click via Terminal?

Is it possible to enable mouse right click via Terminal?