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
0answers
295 views

How to make the display go to sleep mode when Lion's Terminal.app is in full-screen mode?

I've noticed that when I'm running a full-screen Terminal.app in Lion, the display does not go to sleep. This left me with a nasty case of burn-in over the weekend with a magenta message box from an ...
6
votes
2answers
1k views

opening tab in terminal resizes window

I like to adjust my terminal window size to fit whatever I'm working on at the moment- sometimes a tiny screen just to tail a log file, and sometimes I stretch it all the way across the screen to read ...
3
votes
3answers
20k views

How do I delete a BootCamp partition using Terminal's diskutil?

For some reason, the BootCamp Assistant app won't let me delete my BootCamp partition. How can I do so using Terminal and the diskutil terminal app?
4
votes
1answer
4k views

Does the “purge” command damage any thing in my system?

I am using OS X 10.5.8 and in spite of having 5GB of RAM memory, I face a lot of inactive RAM, and go to the terminal and purge it via the "purge" command (of course without quotes). I do this almost ...
1
vote
2answers
91 views

Hold Terminal open

Sometimes I'm working on something in the terminal, and then go away. When I come back, I want to resume what I was working on, but sometimes I forget, and hit command-Q, which closes all the terminal ...
3
votes
2answers
403 views

How can I change Terminal so that I don't have to press ESC every time I want to type a meta-modified key?

Currently in emacs/terminal, I have to press ESC every time I want to send an escaped keystroke, eg: to go forwards two words, I have to press: ESC+f; ESC+f How do I change the system so that I ...
0
votes
1answer
1k views

How can I have Qt Creator to recognize my environment variables?

I use Qt Creator as my main IDE for cross-platform C++ application development. In doing so I had set it up so that it depends on a set of environment variables that I define in .bashrc. On Linux ...
2
votes
2answers
982 views

What is the equivalent terminal command to findsmb on Lion

The findsmb command present in SnowLeopard and older, is not available from terminal in Lion. Is there an equivalent?
0
votes
2answers
267 views

How do I make a terminal alias that edits root owned files in a GUI text editor?

How can I quickly edit root owned files like /etc/hosts and /etc/apache2/httpd.conf in a text editor such as TextEdit which would let me do modern text editor operations, without actually running the ...
1
vote
1answer
1k views

How do I get a Unix Executable File to run from anywhere, like Java or Git?

I've just created my first Command Line Tool in Xcode. What do I have to do, or where do I have to put the final output file, so that I can run it from anywhere from within terminal, without having ...
4
votes
1answer
449 views

In terminal, how to get “say” to say things “right” ? ie using custom phonetics?

I'd like to use "say" in the terminal to create audio files with a custom phonetic dictionary, or at the very least, say things how I think they should sound. From my understanding, this can't be ...
8
votes
4answers
7k views

Waking display from terminal, general waking

This is a two part question. A practical, "how to" question is first, and then I ask for configuration suggestions. First, I put my displays to sleep at night, and I would like to be able to wake ...
2
votes
0answers
262 views

Multi node cluster setup with home network for parallelized computing using e.g. hadoop, MPI or Rmpi

currently I am reading more and more about multi-core processing (threading) and parallel computing. So I was curious about how to use my 4-core processor to calculate parallelized algorithms using ...
5
votes
1answer
427 views

What does Force Quit do in OS X?

How does the GUI interface for force quitting applications (⌘+⌥+esc) work? e.g. Does it work like killall Finder which would send a TERM signal by default?
2
votes
2answers
6k views

Built-in text editor in Terminal

Is there a built-in text editor in the terminal on Lion? (Like, for example, nano on Linux.)
2
votes
2answers
150 views

Geeky terminal for OS X

I want to bind a certain command to show a terminal on screen without window frame with the command of my choice. I plan to use it to quickly launch network monitoring tools (trafshow) when I use a ...
1
vote
2answers
425 views

Help me determine what runs when I open a new Terminal window

I noticed that when I started a Terminal window by accident and tried to close it quickly by pressing the X on the window, I got a dialog box like this: "Closing this window will terminate the ...
4
votes
2answers
180 views

Is there a list of commands unique to the OS X terminal?

I tend to find out about unique OS X terminal commands piecemeal. As problems arise, or as I read askdifferent, I'll find out about handy things like mdls and mdfind. Is there a place that lists all ...
2
votes
3answers
3k views

Why does sudo ask for a password in terminal?

Why does sudo ask for a password when one can sudo su without a password and perform the same commands? Is there a way to make sudo not ask for a password when you're logged in as the an admin anyway? ...
1
vote
1answer
377 views

How to add a directory to my path that includes a colon and a space?

I installed MIT/GNU scheme and am trying to add the directory to my $PATH variable so that I can run it from Terminal. The app name MIT:GNU Scheme.app is a veritable "perfect storm" (for path names) ...
3
votes
1answer
473 views

Automating terminals at startup

Is there any way to automate a bunch of terminals starting up at once. I find myself opening several windows and running the same sequence of commands in various tabs. I'd like to stick all this in a ...
3
votes
1answer
202 views

Changing the range of addresses served to clients connected via Internet Sharing

Macbook Pro Running 10.7.4 attempting to share ethernet connection via Airport(Wi-Fi) and trying to serve 192.168.1.x addresses to connected clients. I've tried the guidance provided here and the ...
8
votes
2answers
33k views

How to save and exit “nano .bash_profile” in Terminal?

I need to add some line to nano .bash_profile in Terminal. Then: 1) I enter with this command line: nano .bash_profile 2) Add the line I need 3) now I don't know how to Save and Exit I thought it ...
12
votes
1answer
1k views

Terminal move cursor with mouse in any way?

Is there any way at all to use the mouse cursor to move the cursor in terminal, like click where you want it and press a key to move it there? This is one of the most annoying things I've ever found ...
0
votes
1answer
370 views

pasting commands from TextWrangler to Terminal (applescript troubleshooting)

I have a following script that I have been using for years to paste selection or a whole line from TextWrangler to R. I got it from some website, slightly modified, and it has worked perfectly: tell ...
2
votes
3answers
276 views

Script to move files under their first letter name

i've a lot of files (1000+) in a single directory, and i would like to organize them into sub directories, according to their first letter. So i've 200 files starting with A, and i would like to move ...
0
votes
1answer
575 views

Running (Perl's) CPAN in OS X: error “Can't open perl script –MCPAN”

All the instructions I can find for running CPAN on Mac OS X (eg. 1, 2 & 3) say to start by running this command in terminal: sudo perl –MCPAN –e shell However when I do so I get this error: ...
-4
votes
3answers
14k views

How to press Control key on Mac

I cannot seem to find out how to hit the ctrl key on a Mac. When I open a terminal and I want to exit an editor such as nano as I cannot since I don't know how to exit and save. How would I do this? I ...
4
votes
1answer
394 views

Why does my Terminal command line screw up like this? (bash's fault?)

When I use the command line history ( CtrlR , CtrlP ) The command line screws up like this: The cursor is supposedly located at the end of the line ( just pressed CtrlE ) If I press enter, just ...
4
votes
1answer
371 views

How do I find where an environmental variable got set?

I installed a program to try it out, and decided I didn't like it so I moved the app to the trash. Today, in my shell, I noticed that there are a couple of PROGRAMNAME_BLAHBLAH environmental ...
2
votes
1answer
439 views

bash file recovery?

I think I messed up my bash file /bin/bash when trying to create my first script, it displays a message saying "process completed" and locks my terminal, if I switch to another shell e.g sh, then it's ...
1
vote
1answer
279 views

copy song info from mp3 file to aac file from terminal

I am trying to create a script that performs various conversions between formats of audio files. In one particular step, I use afconvert in Terminal to convert an mp3 to aac(mpeg4/m4a), but in this ...
0
votes
1answer
337 views

Terminal hangs on startup

I am on OSX Lion. After I Control C the building of Atlas under MacPorts Clang I can no longer get it to run. It start taking around 2GB on startup and even does this after a reboot. After killing the ...
4
votes
2answers
10k views

Can I create a Desktop Shortcut/Alias to a Folder from the Terminal?

I'd like to create a desktop shortcut to a specific folder, buried deep within ~/Library/. Library is Hidden by default in Lion, and I'd like to keep it that way, for a variety of reasons. Is there a ...
0
votes
3answers
492 views

Unremovable directory

I have a problem with a seemingly unremovable directory/bundle. I moved Spotify.app from /Applications to the Trash and later tried to empty the Trash. The empty trash progress bar shows up but then ...
5
votes
1answer
762 views

SSH, passphrases, keychains, Could not open a connection to your authentication agent

I will be very surprised if anyone has the answer to this. I have googled for a long time but no luck. As an iOS developer who will shortly be welcoming a new team member I want to set up a ...
2
votes
2answers
8k views

ls output does not have color while SSHing to another machine with iTerm2, but does with Terminal

Just as the title says, when I ssh to my work Fedora server with iTerm2 I don't get color ls output. When I ssh to the same server with OS X's default Terminal app, ls color output works just fine. ...
1
vote
4answers
3k views

Executables in /bin and /usr/bin are not found in path

Somehow I can’t execute files in /bin or /usr/bin without providing the full path. This isn’t happening when running from Terminal, but, for example, iTerm can’t run bash (only /bin/bash), OnyX ...
1
vote
4answers
27k views

Where do I find my user folder in the OS X folder hierarchy?

In Terminal, how do I go from Macintosh HD to places such as johnsmith that contains Downloads, Desktop etc. In a Finder window, it seems they are independent of each other. From Macintosh HD, I see ...
0
votes
2answers
1k views

Why does running afconvert result in error -43

I am trying to use afconvert to convert a .mp3 to .m4r. I am entering the following: afconvert -f m4af -d aac -o input.mp3 tone.m4r However, this gives me an error: Error: Couldn't open input file ...
2
votes
2answers
940 views

On OS X Lion 10.7.4 in Terminal.app I cannot type `C-M-@` or `C-M-%`, why?

On my MacBook Pro running OS X Lion 10.7.4, there seems to be a keyboard issue. I first noticed this problem when I tried to use the default keybinding to execute mark-sexp and query-replace-regexp in ...
0
votes
1answer
983 views

Installing TextWrangler command line tools into /usr/bin

I just installed the text wrangler command line tools and they are placed into /usr/local/bin by default. On Lion this directory appears to be a root only directory, and I don't want to have to run ...
8
votes
2answers
3k views

What is the difference between .bash_profile and .bashrc?

To make an alias for the Terminal in OS X, you can either put the aliases in .bash_profile or .bashrc. What is the difference between the two and why would I choose to put aliases in one and not the ...
1
vote
1answer
645 views

How do I make a shortcut command in terminal?

I want to have ll as a shortcut for ls -ll. How can I add it to my Termianl application? I use iTerm as my primary Terminal application. I wish there was a single line command solution for it.
0
votes
3answers
7k views

bash: brew: command not found [closed]

I am new to mac and was following a video and typed export PATH="$HOME/opt/git/bin:$PATH" I believe this messed up my path and I am not able to install MySQL now. When I tried to install homebrew I ...
1
vote
2answers
2k views

iTerm2 terminals close immediately with “argpath=login error=No such file or directory”

Whenever I try to open a new terminal window in iTerm, it closes right away after displaying this: ## exec failed ## argpath=login error=No such file or directory Does anyone know what is causing ...
2
votes
2answers
2k views

How can I use Automator to generate a kerberos ticket using KINIT?

I need to be able to generate a kerberos ticket for my MacBook Pro each time the machine restarts. I can manually run KINIT with my credentials to generate a ticket. What is the best way to automate ...
3
votes
2answers
2k views

How to make bash (Terminal.app) remember history of previous sessions?

In my computer at work, my bash shell remembers history from previous sessions, even if I just opened a new terminal. In my computer at home, this doesn't happen. I have the same OS 10.6.8 in both ...
4
votes
2answers
234 views

Why can't this process terminate?

Just recently I ran into an issue where my network program couldn't bind to a port because it was already in use. I opened the activity monitor and realized it (named "server") was already running ...
2
votes
1answer
509 views

`open http://foo.com` and specify the chrome user which is to be used

Using the open command from terminal I would like to be able to specify the chrome the specific chrome user to open the url with? Local Chrome users are outlined here. Essentially I have a local ...