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
1answer
200 views

How do I Create a Macro or Shortcut to run a Command Sequence Terminal

The following was posted as an answer to a question of read/write difficulties on NTFS drive which worked perfectly. Thanks Codler. My question is, is there a way for a noob like me to create a ...
3
votes
1answer
210 views

Running an AS droplet from Terminal

I have an Applescript Droplet application that I need to run from terminal. I can use osascript or even just open to open the AS App, but that will run its on run handler, not the on open droplet ...
5
votes
2answers
5k views

Solarized and Terminal in OS X 10.8.4 Mountain Lion

I am trying to install the Solarized color scheme for my terminal on 10.8.4 Mountain Lion. I downloaded the .terminal files from https://github.com/tomislav/osx-terminal.app-colors-solarized and ...
0
votes
1answer
133 views

cannot write image to sdcard

After every attempt when the process is finished I get an error saying my mac cannot read the card, when putting it in my cubieboard it says the card is damaged. So obviously something went wrong ...
1
vote
1answer
296 views

Fatal error after brew update interrupted

While my system was performing a $ brew update && brew upgrade we had a power failure and my iMac shut down while updating packages/dependancies. After rebooting I tried to run $ brew update ...
4
votes
1answer
110 views

Is there a Terminal shell command to compare the contents of folders?

Sometimes you may want to see the differences in folders in order to: See what files are different See what files are missing See what files have been added Which may prove useful if you wish to ...
2
votes
1answer
147 views

Make terminal transparent to show wallpaper

The opacity option of the Gnome terminal in Ubuntu had a neat behavior, which showed the desktop wallpaper instead of the other windows behind it. Has anyone been able to make Mac Terminal, or an ...
5
votes
3answers
2k views

When Terminal forks process, current app loses focus

While I'm running some program in Terminal (or iTerm2), when the program forks the process, the OS X desktop switches focus from the current application to the forked process. When this happens, the ...
2
votes
3answers
752 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 ...
2
votes
2answers
11k 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
580 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
84 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
1k 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
151 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
123 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
555 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
155 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
308 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
649 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
243 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
145 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
341 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
64 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
639 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
339 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
679 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 ...
3
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
514 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
399 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
329 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
4k 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
587 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
137 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
670 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
67 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
3k 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
168 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
497 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 ...