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
18 views

Homebrew says my Python installation could cause issues and I'm not sure what to do

I'm just getting started with web development and I'm trying to set up my environment, and I can't do that until Dr Homebrew has discharged me from N00bcake Hospital. This is what I'm getting: ...
2
votes
2answers
34 views

Creating a Bridged Network Connection in Terminal

Okay, I'm struggling a bit here. I'm not all that good with Terminal and sorting out network issues using it but I've managed to scrape by so far. Without using Internet Sharing (because controlling ...
2
votes
1answer
21 views

How to replace all Finder files with a placeholder file for each

I have lots of files from a database which are to be copied to a new database, but the files for these are corrupt (They are zero-byte in size and contain no data). Rather than the new database ...
0
votes
0answers
12 views

Symbolic link to Emacs 24 not working

I like to create a bin directory in my home directory and make it the first item in my $PATH. I then create symbolic links to override the default MacOS installed version of certain apps. I have done ...
0
votes
0answers
11 views

Configure: error: clang version 3.0 or later is required - but I already have it

I'm trying to follow this RVM installation guide, supposedly for Snow Leopard 10.6.8 (I should point out that $ rvm -v returns -bash: rvm: command not found), but when I run $ curl -L ...
0
votes
0answers
10 views

Code can't open files that have name containing '/' [on hold]

I am trying to write a python program that does various basic things with HTTP requests. I am running into troubling trying to implement a caching feature. If I save the HTML code in a local file and ...
2
votes
1answer
273 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 ...
5
votes
3answers
4k views

Terminator for Mac OSX

I'm using Ubuntu on a daily basis, and recently (6 months ago) I bought a Mac, so the first thing I did was installing VMWare and Ubuntu on my MBP. Also I'm a developper and I was a huge fan of ...
1
vote
2answers
19 views

How do you disable Printer Sharing via terminal?

I am looking for a command/script to disable the printing sharing feature via terminal. Does anyone have any idea or know how to go about doing this?
2
votes
3answers
41 views

How to add MySQL to $PATH variable to resolve “mysql: command not found”?

I installed MySQL on my Mac, and now I would like to add it to my $PATH variable. I want to be able to type mysql anywhere. I tried adding the following to my .profile file: export ...
44
votes
2answers
57k views

How can I create a symbolic link in Terminal?

What command is used to create a symbolic link/soft link?
3
votes
2answers
130 views

Script to change downloaded mac wallpaper automatically?

I want to change my mac wallpaper daily with microsoft bing images. I found this script that download the daily picture automatically, but I sill have to set the wallpaper automatically. Is it ...
24
votes
6answers
7k views

How do I speed up new Terminal tab loading time?

How can i speed up the terminal startup in Lion? I'm not referring to the startup of the Terminal application, but to the startup terminal windows, like when i open a new tab. I don't have anything ...
1
vote
1answer
12 views

In which file Terminal.app stores its windows?

Usually after reboot/crash all Terminal windows are re-open automatically, this time they weren't. Where (which folder/file) Terminal.app stores the session/information about its windows which ...
1
vote
1answer
29 views

Powerline patched font not working on Terminal.app

I am on Mac OS X 10.10.2 (14C2513). I am using Inconsolata patched font from here. But I also tried to patch the font myself. The result is the following: I am able to see the glyphs but zsh (see ...
2
votes
1answer
15 views

Mac nl only takes lines 2048 chars long

I'm having an issue where the Mac version of nl will mark a new line after 2048 characters. I tried it on linux, and it doesn't do this. Any idea why it does on Mac, and how to fix it?
2
votes
0answers
5 views

Is there a way to force clockwise pane rotation in iTerm2 with the shortcut keys?

I've often found that when using iTerm2, I'll have like 3 or 4 panes open in one tab. And the shortcut keys for moving between them Cmd + ] and Cmd + [ are very useful, but unpredictable. The reason ...
2
votes
1answer
73 views

How to gain insight into spotlight index?

I'd like to get a list of all indexed files and their path that spotlight came across. How would I do that ? mdutil does not seem to be of any help.
2
votes
1answer
23 views

Can't get Terminal to Display Colour (Mavericks)

I've recently been working on a script to backup files, etc. for my own use but recently I thought it may look nicer if I was able to cleanup and have everything nice and tidy (with colours and what ...
1
vote
1answer
19 views

How can I access the keychain remotely from the command line?

I am storing various passwords (e.g. for remote email servers) in my keychain. From the command line, when logged in locally, I can retrieve these via: security unlock-keychain ...
1
vote
3answers
257 views

Terminal command to move a number of files containing brackets to another folder or trash

Last night I consolidated a music collection into one place and each song is separated by an Artist folder and the track. The problem is that there are a high number of duplicates within these ...
2
votes
2answers
1k 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 ...
1
vote
3answers
42 views

New terminal to same directory

When I have a terminal window open, ⌘N opens a new one. Is there any way to get the current directory in the new window to automatically be the same as it was on the window where I pressed ⌘N?
0
votes
0answers
15 views

Can I get rid of these timestamps in terminal?

I'm getting Javascript output in my terminal and it currently looks like this: Is there a way to get rid of the timestamps at the beginning of each line? I'm not sure if this is something I somehow ...
5
votes
3answers
6k 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
3k views

Git: command not found during Git installation (Mac OSX 10.6)

I am trying to install Git on my Mac (OSX 10.6) following the official Git tutorial. I had no problem until I had to set my username and my email. Every time I tried I got -bash: git: command not ...
1
vote
1answer
34 views

How to identify file type for a bulk lot of files and attach suitable extension to each

I have just over a thousand (1000) files whose suffix/extension has been changed by a database engine all to the same thing (eg. fileName.abcd where .abcd is on every file regardless of whether it is ...
0
votes
1answer
21 views

mysql: command not found [duplicate]

How do I use MySQL from the CLI? When I use the terminal, I get: Darrens-MacBook-Pro:~ thufir$ Darrens-MacBook-Pro:~ thufir$ mysql -bash: mysql: command not found Darrens-MacBook-Pro:~ thufir$ ...
13
votes
3answers
3k views

How do I find the windowid to pass to screencapture -l?

The command line utility screencapture claims to be able to capture a single window without requiring interaction, but I can't figure out what to pass it. -l<windowid> capture this windowsid ...
1
vote
1answer
16 views

How to install tofrodos in Yosemite via Homebrew?

This thread is based on my attempt to parse windows syntax to unix in this thread. I run successfully brew reinstall tofrodos and get ==> Reinstalling tofrodos ==> Downloading ...
7
votes
2answers
701 views

How do I find the windowid of Google Chrome to pass to screencapture -l [duplicate]

I'd like to use screencapture -l to do automated screen captures of Google Chrome. This requires knowing the windowid of the Google Chrome process that's running. For apps that support Applescript, ...
1
vote
1answer
13 views

Bash automatically creating () and ()! files

I noticed that the Yosemite system has been creating files with names just "()" and "()!" in places where I recently made bash commands and want to know why. I can't even delete them use rm as after I ...
1
vote
2answers
614 views

Rename terminal tab to host alias in ssh config

I am new to using Mac (Mac Pro, OS X 10.8.4) and I connect to many remote hosts using ssh. I have created aliases in .ssh/config file and would like to have the host alias as the name of the tab in ...
11
votes
6answers
22k views

How do I find my IP Address from the command line?

I know you can do ifconfig | grep inet, but that shows you several IPv4 addresses. How do I get the specific one for SSHing et al?
0
votes
0answers
17 views

how do I install SIPSAK?

How and where is this installed from on a Mac? For context, SIPSAK is the SIP Swiss Army Knife: sipsak is a command line tool which can send simple requests to a SIP server. It can run additional ...
13
votes
3answers
8k views

How can I “say” to another Mac?

I have two Macs in our house (iMac and MacBook Pro). I would like to use the say command-line utility to type something on my MPB and have it speak on the iMac, rather like an intercom system. Plus, ...
3
votes
2answers
1k views

What are the differences between /usr/bin/login and /usr/bin/bash?

Terminal.app has a setting to select with shell it uses, and the default setting is "Default login shell (/usr/bin/login)". What are the differences between /usr/bin/login and /usr/bin/bash?
49
votes
4answers
38k views

Are my permissions for /usr/local/ correct?

I’m using HomeBrew for my port needs (seems a bit “cleaner” than MacPorts). I can install without sudoing (which is great), but the man linking step seems to require it (/usr/local/share/man/man3 ...
0
votes
6answers
3k views

How to browse iPod from terminal

How should I use the terminal to browse and manage my iPod Touch? I mean is there any way to do this just with terminal, not with installing MobileTerminal or something like that, or sshing into the ...
4
votes
2answers
1k views

How can i have makefile/shell script call /Applications/application.app?

OS Mac OS X 10.6.6 emacs 23.2.1 I'm currently trying to install magit on carbon emacs using their proposed make solution. I'm an almost complete makefile newby so I might be on the complete wrong ...
2
votes
3answers
1k views

Check if a process is running, if not execute it again in Terminal

Is there a way to periodically check if a process is running with (probably with Apple script, or some other shell script) and if not then to execute it in Terminal? I have a PHP script that is needs ...
4
votes
5answers
283 views

Installing the most recent version of Ruby on Snow Leopard

I downloaded and compiled the latest version of ruby 1.9.2 which was installed in /usr/local/bin/ruby, however the system officially recognizes /usr/bin/ruby which is only 1.8.7 which came installed ...
2
votes
2answers
3k views

Unhide Partitions via Terminal

Is there any way to unhide partitions that have been hidden by a third party partitioning tool on a Mac using nothing more than Terminal via a Mac OS X Boot CD or USB stick? Edit These partitions ...
1
vote
5answers
604 views

How can I create an entry in the /Applications folder that runs a command in the terminal?

I would like to have an item in the /Applications folder that will open a new terminal window and run a specific command inside. How can I create this?
0
votes
0answers
22 views

Mac Terminal won't accept £ in ssh password?

I have an issue where I'm trying to ssh into the root account of a firewall from my Mac. I'm on the same network as the firewall. ssh root@1.2.3.4 I'm then asked for my password which contains the ...
13
votes
7answers
20k views

How to monitor file access for an OS X application?

I am looking for the OS X corespondent of FileMon, that was later included in ProcessMon. BTW, it is essential to be able to filter by process.
6
votes
3answers
9k views

How can I add a path to the PATH environment variable?

I want to add a path to the PATH environment variable? I have tried with export PATH=/mypath:$PATH and it works. But the next time I start the Terminal, my new path is not int the PATH environment ...
2
votes
2answers
2k views

Why won't terminal let me ssh in to my lan server when Windows/Putty works fine?

I have a development server on my LAN with a static IP address. My DD-WRT flashed router assigns the domain 'server.local' to the static IP of the server. Everything worked fine with my setup. I could ...
52
votes
9answers
97k views

Why doesn't .bashrc run automatically?

I put some alias commands in my .bashrc file, so that they might be loaded everytime I open a new Terminal window. Yet this doesn't happen. I have to select run script: in the ...
2
votes
4answers
165 views

Cursor navigation in Terminal

I quite often find myself needing to move the cursor to the beginning or the end of the line. Is there a keyboard shortcut or other magic trick to move the cursor apart from the arrow keys.