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
3answers
696 views

Make shortcuts to directories via terminal

My problem is: whenever I'm coding, I work inside folders that are inside other folders and it's a long way to type: cd /folder1/folder2/.../folderN I know it's possible to make a shortcut to the ...
12
votes
3answers
5k views

OS X - Create a personal bin directory (~/bin) and run scripts without specifying their full path

So, what I am trying to do is to create a personal bin directory at my home folder. I created the following folder: /Users/thi/bin I put my scripts in this folder, but if I type in the Terminal: ...
2
votes
4answers
7k views

How to persistently define aliases in Terminal

I want to add aliases to my environment so that they are available in all Terminal instances. I got this answer: Yes, you can put it in your .bashrc, .bash_profile or .profile. On some systems ...
1
vote
2answers
10k views

How to connect to the internet from Terminal when using a proxy with authentication

I have to use proxy servers to connect to the internet. I have set all proxies in my system proxy settings. Now I can connect to Internet using my browser and applications. But I cannot connect to ...
0
votes
1answer
547 views

Where is my ./configure file in OSX 10.8.4 (Mountain Lion)?

I'm setting up Cap'n Pro on my Mac and the install instructions ask me to type the following in terminal: ./configure CXX=$HOME/clang-3.2/bin/clang++ I look in my user folder i.e. ~/./configure but ...
1
vote
0answers
81 views

Rails Command Fails Because of Space in Path

I tried setting up a Ruby on Rails project on my nice safe volume called "Data RAID". The set up failed with some strange errors that I eventually tracked down to the space in the path name. It works ...
1
vote
2answers
1k views

How to have different colors in each Terminal window

Can I do this? OMG, I looked for hours, and every article I find tells me how to colorize the output of ls. Or colorize my prompt. I really really really don't want that. I want to colorize the ...
1
vote
2answers
936 views

How to make a command line executable an application?

I have a command line executable (specifically JMeter), which opens a GUI application when launched from the terminal. However, I would like to create a link to it that would wrap it up to become a ...
1
vote
1answer
149 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 ...
2
votes
1answer
121 views

Does OS X Keep A Log Of Downloaded Files On My Mac?

Does OS X make a record or log of every file that has ever been downloaded on my Mac. Is there any reason to view them (or even delete them) ?
1
vote
2answers
1k views

How can I import a .terminal file using the command line?

I'm writing a (Bash) script to automate setting up my Mac environment and would like to do this, except using the command line only. I'd also like to make that theme the default. I have a .terminal ...
0
votes
2answers
12k views

MySQL not working on mountain lion

I'm using mountain lion, I have installed MySQL. GUI It shows MySQL is running, but when I type mysql --version It gives error "mysql: command not found"
3
votes
2answers
2k views

What build flags are available for brew install of gcc?

I'm curious as to what build flags are available to me when installing gcc 4.8 using brew. This question explains how to install gcc 4.8 using brew, but only specifies two possible flags i.e ...
0
votes
1answer
1k views

Clean restart from terminal?

In the last several weeks, my OS X 10.8.4 laptop has gotten completely stuck in states where it's impossible to interact with directly. Several times VMWare Fusion's USB shim has broken keyboard ...
0
votes
1answer
524 views

What alternatives for reporting OSX Server Web Stats do the same job as AWStats?

I need a replacement tool or script to generate stats from the logfiles OSX Server generates while it runs. I have spent way too much time on AWStats and it's had nothing but permissions issues from ...
3
votes
1answer
151 views

How do I cat a deleted file which is still open by its inode?

I have deleted a file I still have open. I want to save that file. I know its inode number. I think that sleuthtools icat would work for me except for the following. $ sudo icat -f hfs /dev/disk0s2 ...
0
votes
1answer
293 views

Help me reset the terminal after sudo command mistake

I recently installed a cracked version of a program and it instructed me to block outgoing connections by following the instructions below. Step 1 Click the "Go" menu, select "Utilities," and then ...
3
votes
2answers
633 views

How are colorschemes represented in OS X Terminal.app Settings Files?

I'm interested in moving color values I've created for OS X Terminal to applications on other platforms, such as Linux. I'm familiar with the usual methods of representing color values like RGB, HSB, ...
1
vote
2answers
218 views

Alias to ssh and cd into a specific directory

I want an alias to SSH into another machine and then CD into a specific directory. I try: alias appl="ssh 9@lon.orb.com; cd /opt/tomcat/instances/" It does not work. Any ideas?
1
vote
2answers
137 views

use different terminal setting after ssh into another machine

I would like to use different terminal setting after doing a ssh into another machine. This would mean I could have my terminals to different machine using different colours. Is this possible? ...
0
votes
1answer
27 views

Find out about links

I have a few links set up. I can do ls -l and get full information about them. For example: Me-Machine:Links me$ ls -l ~/Links total 8 lrwxr-xr-x 1 me staff 64 26 Jul 23:20 jenkins_tc -> ...
0
votes
3answers
328 views

Alternative to cp --parents in terminal

I was trying to use the --parents option with cp (to create the non-existing directories in the target path) in the terminal but that option does not seem to be working in MacOS. >cp --parents ...
0
votes
1answer
62 views

Terminal app no longer automatically recognizes functions in my ~/.profile any more

I made some function in my ~/.profile to automate things like SSH connections. They were working fine until recently. Now I need to "run" the ~/.profile by doing . .profile each time I open Terminal ...
2
votes
1answer
593 views

Reboot from the command line (stuck processes)

I started a remote reboot of my machine but a couple of stuck processes are hanging the reboot. login with SSH is still possible sudo reboot or sudo shutdown -r hang two processes are trying to exit ...
0
votes
0answers
327 views

Programmatically setting Terminal default settings for all users?

I'm trying to set up some standard terminal settings for all users across our system on all machines. I've tried to use the defaults write cmd in a LoginHook script, but since it seems that terminal ...
2
votes
5answers
635 views

How to produce constant output in a Terminal window?

Like when you do brew install wget or mysqld restart I want some lines of information constantly run through my terminal window. Is there maybe something I can monitor or any stream of information I ...
22
votes
4answers
10k views

Can a Mac's model year be determined via Terminal Command

Does anybody know a terminal command that gives me the the model of my Mac? For example - "MacBook Pro, Retina, 13-inch, Mid 2013" or "MacBook Pro, Late 2009" or "Mac Mini, Early 2010". That ...
2
votes
1answer
2k views

Set size of window to exact pixels, and place via x, y coordinates

I would like to create a tool that allows you to set windows to exact sizes on the pixel scale to be able to have more precise screen divisions. For example, if I had four Terminal windows (and I ...
2
votes
2answers
225 views

Summary of Apple Specfic terminal commands

Where can i find such a good list? I tried googling, but they just cover the linux basics (cd, ls, rm, sed, etc.). What are the Apple specific tools for changing settings, volumes, bundles, plists ...
0
votes
2answers
481 views

How Can I Send Text (and Not a Text File) to My Printer on OS X?

I know about this question (How do I send ASCII text to printer (over USB)?). But I'm working on something different. I'd like to be able to send text from within a bash script or Perl script to my ...
2
votes
2answers
376 views

Unlock Mac from Terminal or Automator

In my attempt to start iPlayer and BBC News every morning, I have scheduled Automator to open a page. It does work, however my Mac stays locked, therefore I need to get out of my bed and enter the ...
2
votes
1answer
316 views

How can I systemwide check if a keyboard shortcut is in use or has been registered?

How can I query OS X to know if an application has registered a shortcut? I could inspect every app I have or that is running at least with KeyCue and go through the Keyboard Shortcuts section of ...
5
votes
3answers
5k views

How can I download all MP3 files from a web site?

I am wondering if there is any software available in OS X that can download all mp3s or specific type of file from a URL. For e.g. I have a url http://www.parweztv.com/Khan%20Adeeb/SURA-04/ and I want ...
0
votes
0answers
559 views

Which mail daemon does OS X 10.8.4 run by default?

I'm debugging some mail related stuff on my Mac, and not quite sure how my system is even sending mail. I can run a simple command like date | mail -s test myemail@mydomain.com and receive an email ...
1
vote
0answers
134 views

Sudo works for a whole day and then stops working until a reboot

I currently have admin access to a Macbook Pro running OSX 10.8.4. I have been sudoing at the terminal for the whole day with no restart until sudo stops working. I rebooted the operating system and ...
1
vote
1answer
39 views

Can two apps be tied so that when one opens or closes, the other does so?

Can triggers be set up so that when "App A" starts, another "App B" gets started automatically? Ideally, the solution would send a quit message to "App B" when "App A" quits, but the important part is ...
1
vote
1answer
598 views

Automator to execute shell script with an input text file, copy it to specific directory

I'm simplifying making a .deb file with Automator. I currently have a shell script that does some simple actions - Ask the user for text input Do some directory parsing Execute a command with the ...
9
votes
3answers
4k views

Why is OS X able to send out email without first configuring SMTP?

When I try the command in terminal, an email is sent. I have checked there is no local SMTP is running, so what is the mechanism used by Apple behind the scene? echo "Hello" | mail -s "Test" ...
1
vote
0answers
62 views

Compiling a gimp plugin

I wish to compile the Gimp plugin "Save for Web" on Mac 10.8.4. I use brew for package management but libgimp2-dev is missing. I've downloaded Gimp 2.8.6 from here . I've downloaded the latest ...
3
votes
1answer
4k 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 ...
1
vote
1answer
155 views

Clicking on folder in iTerm2 opens in web browser instead of Finder

I have iTerm2 v1.0.0.2 and I am correctly able to open folders in my home directory if command-click on them. However I am not able to open folders on my Desktop or Documents if I command-click them, ...
10
votes
9answers
487 views

Can I shorten the typing needed to `cd` into some well know directories

I find myself opening a terminal and then CD'ing a lot into the same directory the path of which is very long. This means I am cd'ing a lot and using the tab to speed things up a lot. IT would be ...
3
votes
2answers
198 views

Re-reading your .bash_profile

When you make a change to your .bash_profile it will be read the next time you open a terminal. But what if you have a terminal open already. Is there anyway to do a re-read?
2
votes
1answer
4k views

ls command: What does the @ in file mode mean, and how to get rid of it?

After I download files on OSX and then want to use them, they often have an @ appended on the file mode whenever I do a ls -l. Here is an example output, see the @ near the beginning of the line: ls ...
0
votes
2answers
1k views

netstat: n: unknown or uninstrumented protocol

I always use netstat on ubuntu to check which processes are listening on specific ports. I use the following switches with netstat that work fine on ubuntu but on mac fail: sudo netstat -tulpn ...
1
vote
2answers
4k views

How to get Apple Command Line Developer Tools without App Store?

I got a mid-2013 MacBook Air for UNIX development. I'm disappointed that it came with no C/C++ compilers and with no make, which are apparently part of Apple Command Line Developer Tools, which is ...
1
vote
1answer
458 views

Copy and Paste files into the same directory using Terminal

I am currently trying to figure out how to Copy and Paste files (more than one file) into the same directory using Terminal. I am trying to create a script to create the same file. If there is a ...
0
votes
1answer
3k views

How, if possible, can you chat using talk or write in the app Terminal?

I have heard you can send messages to other users in Terminal with the command "talk" or "write". If you can in fact do this, how?
3
votes
2answers
482 views

What is the default speaking rate for the speech synthesis program?

I've been looking all over the internet, but I can't seem to find out the default speaking rate for the in-built speech synthesis program on Mac OS. say "What to say" -r <rate> As shown above ...
0
votes
1answer
208 views

How can I make OS X's bash expand $PWD to be case sensitive?

I am running OS X 10.8 on a MBP 2011. I use some bash-scripts for tasks like backups of remote servers. One of the scripts contains this snippet: #!/bin/bash if [ "$PWD" != ...