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
1k views

How can I get tab completion back?

In terminal, if I try tab completion in a directory e.g. Movies, instead of the movies beginning with S (if I type S followed by tab, I see SetFile, Splitforks and SystemStarter. I suspect I installed ...
0
votes
1answer
589 views

Python IDLE can't be opened by double-clicking .py files in Finder

I can't open .py files in IDLE by double-clicking them in Finder (IDLE is currently set as the default program for opening such files). Nor can I open those files by right-clicking and selecting ...
1
vote
1answer
243 views

Terminal font is not smooth

I am new to Mac, and I am finding that the fonts are not smooth. Changing the system defaults (defaults write -g AppleFontSmoothing -int 2, "Use LCD font smoothing" checked) do not improve the fonts. ...
3
votes
1answer
115 views

mac asking password after cd in terminal

Recently my mac has started asking me for a password after I use cd in Terminal.app (haven't tested other term apps). strangely though, if I press ctrl-C when the passowrd is asked, the question goes ...
3
votes
1answer
2k views

Disable password authentication on SSH server on OS X Server 10.8

I want to disable the password authentication of the SSH server on my OS X Server. this should be done in /etc/sshd_config, right? But I’m not sure which setting I should change…
1
vote
4answers
7k views

How can I create a stand alone APP to run a terminal command

I have the requirement to manually run the OSX maintenance scripts in OSX (Lion / Mountain Lion). I would like to create a completely stand alone application that would achieve the following goals: ...
1
vote
0answers
1k views

My MBP (13 inch, MID 2010) will not start up

I have used the internet for the past 2 weeks in search of something that will help me troubleshoot/repair my MBP. It wont boot in Safe Mode using the SHIFT key. Following is everything I have tried ...
1
vote
0answers
237 views

Is there a console interface for the Client Monitor on OSX?

I'm writing a bash-script at work for controlling our Mac-computers (OS X Mountain Lion) remotely. Since we use FileWave in our Company we just have to remove an Application and restart the computer. ...
2
votes
2answers
217 views

Alternative to “luit” which is available via homebrew

I have a few legacy commands which I need to run in the terminal. Unfortunately they only work with ISO-8859-1 encoding being used. For now I manually switch the terminal encoding, but that bugs me. ...
3
votes
0answers
6k views

How do I force a partition and format on a USB key in OS X Mountain Lion Disk Utility or from CLI diskutil?

I have a brand new Memorex TravelDrive 64GB USB disk which is being troublesome. It's formatted FAT16 on MBR, which is not so nice, and I'd like to put it on HFS+. I've tried to do this through ...
24
votes
2answers
754 views

How did this ominous file end up in my Application Support folder?

Deleting this file will break the whole internets, for the sake of our children don't do it!. The above quotation is the content of a text file called STR8369805638PUB6932583035105 that I found ...
1
vote
2answers
4k views

Ruby 2.0.0 fails to install because of openssl

I can't install ruby from source, on configuration (./configure) it states Ignore OpenSSL broken by Apple. Please use another openssl. (e.g. using `configure --with-openssl-dir=/path/to/openssl') ...
0
votes
1answer
746 views

Load .bash_profile automatically on Terminal.app startup?

I have seen various questions that ask something similar. They suggest changing .bash_profile to .profile. However this doesn't work either. I have aliases setup up in .bash_profile. I would like ...
1
vote
1answer
2k views

Terminal Tab Title after SSH Session

In Mac OS X (I'm on 10.6.8, though I believe other versions are the same) ssh'ing into a remote machine changes the title of the current tab in Terminal. Annoyingly, when I disconnect from the remote ...
6
votes
1answer
3k views

Create a termnial command to open file with Chrome

I want to create command in terminal that would allow me to use chrome index.html and have the the given file open in Google Chrome. How can I get this working?
1
vote
2answers
635 views

Use Cmd as Ctrl key in vim

How can I input commands such as <Ctrl-W> and <Ctrl-]> in vim using Cmd instead of Ctrl? The reason why I want to do it is because it's more comfortable. When I need to switch to a ...
3
votes
1answer
176 views

Mac Terminal support for multiple fonts

I was trying to get emacs minimap to work on the terminal - http://www.emacswiki.org/emacs/MiniMap However, the font is the same size as the rest of the screen, which makes it pretty useless. It ...
2
votes
1answer
43 views

macos x terminal cursor is 1 posisiton righter then it should be

When I start terminal the cursor position is 1 position righter then it should be and there is a gap between last symbol and the cursor. How can I fix it?
1
vote
2answers
5k views

Terminal returns not found for most commands Mac OSX

I'm really new to Mac OSX and UNIX based systems. I wanted to run a few Windows games on my Mac Mini so I started installing Wine and MacPorts. Having done so, I typed in sudo port install wine and ...
1
vote
1answer
1k views

The Command to enter login items is not working in 10.8

I am entering the login item from the terminal but, this command is not working for me: defaults write ~/Library/Preferences/loginwindow AutoLaunchedApplicationDictionary -array-add ...
1
vote
2answers
208 views

Change ownership of all files, from one owner to another

I changed the shortname of my user account, but it seems to have caused an issue with some files (especially homebrew stuff), which are still owned by the old username. My old short name was cannyboy, ...
4
votes
1answer
2k views

Need more pseudo terminals

I'm running tmux and creating many sessions to various servers. After opening 128, I can no longer open new ones, or open new tabs in Terminal. The error messages is: forkpty: Device not configured ...
3
votes
1answer
1k views

Can you send a message across the network?

There used to be the ability, perhaps before OS X, to send messages accross the local network, which displayed a popup on the receivers machine with the message. Is this still possible? Or is there ...
3
votes
1answer
1k views

Is it possible to download Apple's Command Line Tools for Xcode from the command line?

Background My job gives me temporary MacBook Pros for travel purposes. I get them with a fresh OS install before I leave, and when I return, they blank the hard drive. The trips usually require some ...
0
votes
0answers
453 views

libicu-dev: Package not found by apt-get

I try to install libicu-dev using apt-get sudo apt-get install libicu-dev And i get the error E: Couldn't find package libicu-dev I tried apt-get update but that didn't change a thing. Fink ...
0
votes
1answer
147 views

Determine geolocation in shell / Terminal on OS X 10.5

Is there a way to determine geolocation in shell / Terminal on OS X 10.5? There's another question, Is there a way to access a Mac's geolocation from terminal? (Mountain Lion), but it seems to ...
9
votes
3answers
18k views

What steps are needed to create a new user from the command line on Mountain Lion?

What commands (or script) can create a fully functional user account on Mountain Lion, running only from the command line via terminal or ssh. It looks like an existing pair of answers might work, ...
1
vote
3answers
65 views

how to tab text blocks in terminal input line

$ I want to be able to tab from the start of one word to the next in this line, but how? usually if I paste something in the input line then want to change something in the start or middle, I have ...
3
votes
3answers
437 views

iTerm ZSH - Missing Right Prompt

I'm using oh-my-zsh and iTerm2. I've also enabled the zsh-vim-mode plugin from oh-my-zsh. One of the annoyances I've encountered is my right prompt (RPS1 & RPROMPT) doesn't seem to show up. I'd ...
4
votes
5answers
301 views

Are there any global key combinations suitable or specifically reserved on OS X for user assignment?

I'm trying to identify an appropriate global hotkey to set in iTerm2's preferences for showing/hiding it: I'd like to avoid any conflicts with other applications' hotkeys or other future use. Are ...
5
votes
3answers
815 views

After typing sudo I can no longer autocomplete commands by pressing Tab

In a Terminal, if I type beginning of any command by pressing tab I can see the rest of that command. However this feature does not work with any words I type after sudo. How can I complete command ...
0
votes
1answer
50 views

How to correctly handle two different versions running commands from Terminal?

I've download ctags from Homebrew, which was installed in /usr/local/bin/ctags. Currently I have an older version of 'ctags' which is located in /usr/bin/ctags/. I want the new version to be the ...
2
votes
2answers
86 views

When running a command from terminal, how can I know the full path of the command?

Assuming I'm writing in Terminal: 'ctags', how can I know the full path of the command 'ctags?
3
votes
2answers
2k views

I want to remove an entry in my $PATH

I'm running OS 10.8. When I echo $PATH my terminal outputs ...
0
votes
1answer
205 views

How do I view .nfo files in Terminal?

I'm trying to open an .nfo file correctly with the mac terminal (eventually with iTerm2) . I've tried it already with vim: vim file.nfo :set encoding=cp437 But it has not helped. Maybe there are ...
3
votes
1answer
132 views

How to find delay when launching new Terminal (iTerm)

When I press CMD+N in iTerm2 to bring up a new iTerm window, sometimes it takes 10 seconds before I get my prompt. If I immediately repeat the process, the whole thing takes 1 second. To me this ...
3
votes
1answer
1k views

OSX ML Terminal - Switching tabs

I am a terminal junkie and use it all the time...literally. Is there any way to be able to switch between tabs with Command+Number (eg. Command+1 for tab 1). Yes, I know about iTerm, I'm just ...
0
votes
1answer
46 views

Terminal not logged in properly

I'm having a bit of an odd issue with my terminal. I'm used to the prompt being Joosts-Macbook:~ Joost$ or something of that nature, but all of a sudden it displays a number I don't recognise: ...
0
votes
1answer
2k views

How do I change the gateway of a specific connection using the Mac terminal?

My goal is to be able to change all of the following for a specific device: IP address, netmask, and gateway. So far, I've gathered that I should be able to use ifconfig con0 10.8.0.14 netmask ...
5
votes
1answer
4k views

How do I get Wi-Fi info from within Terminal?

Is there a way to get BSSID and the list of available Wi-Fi networks from within Terminal? I.e. I'm looking for something similar to ifconfig run0 scan on OpenBSD, which lists all access points, ...
2
votes
2answers
421 views

Using cURL to download images in XML feed?

I have an XML file that has links to various .jpg I want to create an applescript that downloads a local copy of these. The idea is to also label them sequentially with a number say 001 to 030. ...
2
votes
1answer
435 views

Where should shell tools be installed?

Are there Apple guidelines for where user shell tools in Mountain Lion should be installed? Some (e.g. TeX, or Apple's Git) end up in /usr, and others (e.g. X11) seem to end up in /opt (sometimes with ...
6
votes
6answers
7k views

Improved Terminal autocomplete funcionality (similar to Matlab's)

If any of you ever used Matlab, you might have noticed the command window functionality in that program. I wonder if it is possible to enable the same functionality in Mac Terminal. It works like ...
0
votes
1answer
85 views

How to manually determine version control metadata for Finder?

I have a Scripts folder where I keep Automator actions, Applescripts, and shell scripts. Automator scripts are automatically assigned a version of 1.1.1 it seems. When I make revisions to any of these ...
1
vote
1answer
446 views

Emacs copy a paste line with comment adds extra space / line

I work in emacs in a termal tab, and instead of using the built in copy and paste shortcut commands I generally just highlight (with the mouse) to copy and paste. This works fine for normal ...
5
votes
3answers
9k views

Merging Multiple CSV Files without merging the header

I need to merge multiple .CSV files (using the cat command) but without copying the header for each file. What's the best way to accomplish this task?
1
vote
1answer
62 views

Make meta + arrows count underscore as words?

I find myself using the meta + arrow keys constantly. When I am editing code, it would be nice if I could count underscores as words so that when I decide to rename a variable it goes to the ...
3
votes
3answers
3k views

How can I use Terminal to copy all files of a certain type from a failing hard drive?

I need to use terminal to copy my Pictures folder from a failing harddrive onto another drive, but I can't actually change into the folder and use just cp *.jpg ~/Documents. Is there a way to do this ...
3
votes
3answers
3k views

Dig not returning authority section?

Digging wikipedia.com, on my Macbook Pro, returns: $ dig wikipedia.com ; <<>> DiG 9.8.3-P1 <<>> wikipedia.com ;; global options: +cmd ;; Got answer: ;; ...
3
votes
1answer
281 views

Reload menu bar from terminal (not SystemUIServer)

I am looking for a way to reload/refresh the "apple symbol" menu in the upper left corner from the terminal. Searching for ways to refresh the menu has only led me to find the command killall -KILL ...