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
0answers
244 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
400 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?
0
votes
2answers
5k 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
148 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
398 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
174 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
337 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
433 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
187 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 ...
6
votes
1answer
25k 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
326 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
249 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
491 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
11k 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
353 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 ...
3
votes
1answer
362 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
406 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
251 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
313 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
8k 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
472 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 ...
4
votes
1answer
719 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
7k 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
2k 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
21k 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
945 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
883 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
890 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 ...
7
votes
2answers
2k 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
543 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
1k 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
222 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
504 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 ...
4
votes
0answers
3k views

How do I remove the hostname from the bash prompt in Terminal? [duplicate]

My prompt in Terminal currently looks like: Dzulhelmis-MacBook-Pro:~ myusername$ I want it to be as short as possible, maybe at least no hostname there. How do I change my bash prompt?
5
votes
1answer
2k views

How can I tell which volume the operating system is on?

I'll admit that I am kind of rolling multiple questions in to one here so please forgive me and try not to knock me for it. I am new to Mac but I'm trying to port one of my Java applications to OS X. ...
2
votes
1answer
618 views

How can you get an app running in Terminal to scroll properly (as on Ubuntu)?

Example: In Terminal, I fire up elinks and browser to a web page. I try to use the trackpad scroll gesture and the page up and page down to scroll up and down the web page that elinks is showing me. ...
2
votes
2answers
1k views

Hostname changes in the terminal when connecting to some wifi networks

When I connect to some wifi networks my computer hostname changes in the terminal - is this normal? Is there a way I can prevent this from happening?
1
vote
1answer
482 views

F9 key with BYOBU

I have installed BYOBU via Brew and all the F keys work except for the F9 key which happens to be the key used to get to the menu. I have worked around this by editing the ~/.byobu/status files ...
9
votes
1answer
3k views

What is the difference between the sudo and su command?

What is the difference between the sudo and su command? Why does OS X handle these different than Linux?
4
votes
3answers
2k views

How to make Mac Terminal restore working directories when restarting

I use the Mac Terminal with a hand full of tabs each assigned to a different working directory. I have configured it to open new windows with the same working directory. Nevertheless, when I am ...
7
votes
4answers
17k views

How do I execute a bash script that requires root privileges?

I have this script lines from my ISP: sudo bash echo "plugin L2TP.ppp">>/etc/ppp/options echo "l2tpnoipsec">>/etc/ppp/options It works if I paste line by line into Terminal. I want to ...
4
votes
5answers
170 views

Learn about basic OS X applications

I have been a Windows user and have recently started using OS X (I have Snow Leopard on my machine). I wanted to learn about the basic applications in OS X (e.g. Terminal) and other commonly or some ...
0
votes
1answer
75 views

Text unselected when clicking to activate Terminal window (OS X Lion)

I've noticed this behavior in Lion's Terminal.app: Let's say I have some text selected in a non-active terminal window. Meaning, another window is active - it could be another terminal window, or ...
3
votes
1answer
790 views

-bash: Applications/mvim: /bin/sh: bad interpreter: Operation not permitted

I am getting a weird error with the mvim script that is supposed to start the MacVim interface. See below for the issue. /bin/sh is just fine, mvim was chmod +x'd, other /bin/sh scripts run fine... ...
15
votes
2answers
10k views

Amending PATH so that /usr/local/bin is ahead of /usr/bin

I'm trying to install brew but get the following warning: Warning: /usr/bin occurs before /usr/local/bin This means that system-provided programs will be used instead of those provided by Homebrew. ...