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

0
votes
2answers
106 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
625 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
124 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
499 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
426 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
120 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 ...
8
votes
1answer
21k 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
82 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 ...
12
votes
4answers
3k 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
4k 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
3k 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
34 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
90 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
4answers
24k 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
2k views

Terminal ~/.profile does not contain `source ~/.bashrc` in OS X 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
40 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
627 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
573 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 ...
3
votes
3answers
1k 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 ...
1
vote
4answers
866 views

Is it possible to enable mouse right click via Terminal?

Is it possible to enable mouse right click via Terminal?
1
vote
4answers
3k views

Is there any way to save Mac OS X preferences into a shell file?

Whenever I reinstall my Mac OS and/or buy a new Mac, I have to configure manually almost all the options of mouse, dock, etc. I'd like to know if Mac OS or some software can provide some way to save ...
2
votes
1answer
233 views

How to find out which terminal app (iTerm or Terminal) is running from within bash

I need to have different color schemes for each of the two terminal types I use. I can set it in the .bash_profile as mentioned here. But how can I tell it to differ depending whether its a iTerm2 or ...
1
vote
1answer
948 views

Tail multiple log files

I have an application which generates new log files each time it is run. They all go to one folder, with filenames like this, and the next log isn't started until the current one is finished. ...
0
votes
1answer
39 views

From where do the encodings supported by Terminal come?

If one goes into the Preferences of Terminal.app, there is an "Encodings" tab. From where does this list come? How can one add further encodings?
0
votes
1answer
304 views

move a file, replacing existing (if any), ideally by putting existing in the trash

I am trying to find a way to automatically (without user intervention) move a file from A to B, replacing B if it exists, ideally by putting the existing copy of B into the appropriate Trash folder. ...
0
votes
1answer
361 views

In Terminal, when the the “cd” command is called, libwww-perl's “head” command is also executed

Currently, in Terminal, when I execute a cd command, it also executes LWP's head command. A copy of the Terminal output follows: laptop:bin user$ cd ~ Unknown option: n Usage: head [-options] ...
5
votes
2answers
1k views

Strange message in terminal when visiting a website

I have my terminal open most of the time. Today while I was searching for a software, search results took me to http://download.cnet.com. I didn't like the software, closed the page and carried on. ...
0
votes
1answer
674 views

Mavericks makes files synced to SMB share hidden

I have a script running by a LaunchAgent to sync a directory with a remote share. This script is fairly simple, I'll include it here just so nobody suspects the script. #!/bin/bash # Hjälpskript ...
-1
votes
1answer
59 views

Seeking shell-scripting resources for the visual learner

I'm trying to teach myself shell scripting. I understand things best when I see them in the context of a system, especially when I can visualize that system. I'm looking for a visual companion to ...
1
vote
0answers
128 views

Correct Way to Check if Spotlight Has Indexed a Folder's Contents

Okay, so I've written a script that uses mdfind to more quickly match files, however, I need to find the best way to check whether a target directory is indexed or not, so I can fall back to using ...
3
votes
1answer
4k views

How to remap tmux split pane keys?

On my linux machines, for my terminal shell I have tmux keys mapped to allow me to split windows and then switch between new panes. With or without these mappings I can't figure out how to remap the ...
20
votes
2answers
71k views

How can I list my open network ports with netstat?

I would like to list my open network ports in Terminal with built in commands. As what I know, netstat is the command to use. But I'm struggling to get any useful information out of it. How can I ...
0
votes
0answers
975 views

Setting Account Picture/JPEGPhoto with dscl in terminal

I'm working on a script based on this question: What steps are needed to create a new user from the command line on Mountain Lion? The script is packaged up in an empty installer as a postflight ...
1
vote
2answers
66 views

Forcing a script to run in english

My Mac is running Mavericks in English, but because my region is set to Portugal and my keyboard is the portuguese one, when I run some scripts they shows messages in portuguese. I generally hate to ...
15
votes
2answers
32k views

Using terminal to get current fan speed?

I would like to view the current fan speeds of my MacBook and iMac using terminal. I've found that running spindump then cat /tmp/spindump.txt | grep "Fan speed" will show it, but that's very slow and ...
0
votes
1answer
104 views

ImageMagick convert command produces a slight error

This happens when I convert a GIF into a series of PNG files. I convert a .gif animation to a series of .png using convert ex.gif my_png_files_%d.png I get a series of .png-figures but some of ...
0
votes
1answer
62 views

Odd bug in iTerm — Why is my name wrong?

I opened up iterm and it says "jessica-s-phone" I'm not sure what the term for that is. I checked my profile and it isn't there.
1
vote
2answers
163 views

How do I change parts of my terminal prompt? [duplicate]

In Terminal it says Last login: Mon Jan 13 00:00:14 on ttys000 Logsdon:~ DomGomez$ How do I change the DomGomez part in Terminal?
2
votes
3answers
477 views

Running a bunch of commands in Terminal

I run the following commands for logkext a lot in my terminal and would like a know a way to automate the whole process. Open terminal type "sudo logKextClient" Type in administrator password ...
3
votes
2answers
3k views

Show Results of Automator-Terminal command

TL;DR If I create a .app via Automator, how can I show results of a shell script in a dialog or terminal window? I am using Automator to run a shell script adb install /Directory/$1.apk and if I ...
0
votes
2answers
82 views

Run .command with input at runtime

I need to run a .command file with input at runtime, but I want to run via double click, not from terminal. I have a file adbInstall.command file with this code adb install /Directory/$1.apk From ...
5
votes
1answer
3k views

Using bash/terminal to get number of battery recharge cycles

I would like to get the number of recharge cycles using bash (terminal commands). I understand the following command will display all of the battery data, but I want the cycle count on its own ioreg ...
1
vote
1answer
58 views

How do I make my list filter in Java usable in Automator as a service?

A friend of mine has written me a small Java application that is used to filter two lists of words (used for work sadly). Currently I would run the application in the terminal like so: java ...
3
votes
3answers
3k views

Find all executable files within a folder in terminal

I have a folder myfolder that contains a huge hierarchy of files/folders. How to find all executable files within this folder? On Ubuntu this works: find . -executable -type f But Mac OS X Mavericks ...
4
votes
2answers
3k views

How can I enable and/or disable OS X's power nap feature from within Terminal?

I can deal with it using some command-line commands such as defaults write … etc, but don’t know what the exact command and argument names to use?
5
votes
1answer
1k views

How to launch TextMate (and probably other software) from the command line?

I am very new to Mac, coming from Linux. I am using TextMate, and I suddenly discovered I do not know how to launch TextMate from command line. Using completion, nothing looks like TextMate. Where ...
5
votes
1answer
273 views

What is the relationship between `launchctl limit` and `ulimit`?

There is not any ulimit configuration in system startup files/ shell startup scripts. ulimit -a shows: -u: processes 1064 -n: file descriptors 256 launchctl ...
2
votes
2answers
550 views

Terminal.app equivalent of `xterm -e 'cmd'`

With xterm (and gnome-terminal, terminator, etc), you can run the following command: $ xterm -e 'vim somefile.txt' xterm will open and run the specified program (in this case, Vim). When the ...
3
votes
1answer
154 views

How to get everything from terminal mail(1) sent to my email address?

I'd like to be notified by email whenever a message gets sent to my terminal mail, how could I achieve this? I see some information about cc'ing in this documentation, but I don't know how to use it ...
3
votes
1answer
2k views

Terminal problem with Ctrl + Arrow and Shift + Arrow keys

I am running Mavericks on a new Macbook Pro. When I use the Ctrl and Shift keys together with the arrow keys, I get some sort of key codes as output in the terminal. I am pretty sure that this problem ...