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

4
votes
2answers
19k views

how to start/stop/restart processes

As a new comer from Windows OS, I wonder how to start/stop/restart a service on Mac OS X Snow Leopard 10.6.8 ?(it's straight forward on Windows using its Task Manager). I tried Activity Monitor, but ...
43
votes
12answers
38k views

How can I open a Terminal window directly from my current Finder location?

I was wondering if there was any was I could right click inside any instance of a "Finder" window such that I have an option that says "Open Terminal Here". It would be really helpful.
3
votes
4answers
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?
2
votes
1answer
265 views

Special character codes are displayed in the Terminal for diacritics when connecting to an Ubuntu Server

When I connect to an Ubuntu Server (ssh) and I try to see some text in the Terminal form the remote server, I get character codes instead of the appropriate text with diacritics. for example for a ...
60
votes
4answers
24k views

git auto-complete for *branches* at the command line?

On my linux machine I have autocomplete for branches with git. For example I can type git checkout [TAB] and get a list of branches. Or I can type git checkout feb* [TAB] to get all branches that ...
2
votes
2answers
823 views

OS X's hidden preferences disappeared after Mavericks upgrade?

In past OS X versions, I used some commands to set preferences on my Mac. For example, I used the following command to enable selection of text in Quick Look: defaults write com.apple.finder ...
0
votes
1answer
18 views

Hostname changes all the time from capital to not capital and back

my Macbook air is called Johannes-Air. But when I open the terminal sometimes it says Johannes-Air and sometimes johannes-air. Does anyone know why this happens and how to stop it?
4
votes
2answers
229 views

How to spoof a USB-Ethernet adaptor Mac address in OS X

I've recently bought a usb-ethernet adapter (not apple) and I get internet connection. In my university we have to put a specific mac address but I can not change it. I have tried with sudo ...
1
vote
0answers
11 views

On which processor does my simulations run? [migrated]

I am currently running 11 numerical simulations (coded in C) on another Mac computer via my Terminal using ssh and screen (Bash) on Mac OS. The computer that is running the 11 processes has 16 ...
7
votes
3answers
10k views

How do I mount ejected external USB flash storage? [duplicate]

Suppose that we connect our flash USB drive to a MacBook, then eject this storage from Finder sidebar. Now I want to remount this storage without unplugging and replugging it into the computer, but ...
0
votes
0answers
26 views

How to mouse copy a very long line in vim terminal OS X

I want to copy with mouse one line from one vim terminal to another vim terminal. This line is huge and has a hidden character (I presume at the beginning) that I do not want to copy. In other ...
0
votes
0answers
8 views

Add a path to the system PATH [duplicate]

Please help me figure out how to set a system wide PATH..... I have upgraded svn to version 1.8.10 on osx 10.9 One of the required steps was adding the address of the current svn to the PATH. ...
0
votes
1answer
23 views

Fullscreen a running application from the terminal

I'm trying to pull a prank on a friend. I have a shell script that continuously cats a C source code file so make it look like the terminal is "hacking" something. The next thing I would like to do is ...
-2
votes
0answers
25 views

How to prevent my app from launching in a terminal?

When I open my app in finder, it opens a terminal like this: Last login: Mon Dec 1 10:13:26 on ttys001 MacBook:~$ /Users/me/Library/Application\ Support/myapp ; exit; I noticed that if I configure ...
2
votes
1answer
88 views

Fish shell installation using homebrew - iconv libiconv error

I am trying to install Fish shell using homebrew using command: brew install fish But the installation fails with the following error: ==> ./configure --prefix=/usr/local/Cellar/fish/2.1.1 ...
166
votes
7answers
84k views

How can I configure Mac Terminal to have color ls output?

How can I configure Mac Terminal to have color ls output? I am using MacOS 10.5
0
votes
1answer
43 views

how to find files with .j or .jp extension

I have some image files that have a messed up extension. The files are of the following format: "filename." "filename.j" "filename.jp" I need to find all these files which are in several folders and ...
0
votes
3answers
229 views

Chrome won't quit! (Mac Yosemite)

I tried normal quit, and it closes and immediately re-opens. I tried force quit, and it closes and immediately re-opens. I tried force quit from the Activity Monitor, and it closes and immediately ...
1
vote
1answer
54 views

How to get rid of “You have new mail.” in zsh

I'm using zsh with prezto as my shell with iTerm as terminal app. I always get the message "You have new mail" when opening a new prompt. I don't have any new mail in Mac Mail and I don't run a mail ...
0
votes
0answers
15 views

Need help fixing bus error in Eclipse Java? possible Pathway problem

Whats up folks, i have posted this question on other forums but got no reply, just note before you read, my terminology is not the greatest, im only studying IT this year, so my knowledge be still a ...
1
vote
1answer
20 views

Disabling “access to contacts” dialog box with terminal

I am trying to disable the following dialog box that pops up all the time when I open Mail.app: Is there a way to do so using terminal? Thanks!
0
votes
2answers
27 views

Extract target of alias from Terminal

In my Finder windows I have many aliases that target other folders or documents. At the shell prompt in Terminal, these aliases show up as regular files. How can I get the target of an alias so that, ...
2
votes
7answers
3k views

How do I remove crashplan from my Mac

I recently tried out CrashPlan on my Macbook, but I decided not to go through with that. However, now that I'm not going to be using CrashPlan after all, I can't figure out how to remove their app ...
0
votes
1answer
15 views

Specifying network device used by software (or port) (in Terminal)

Is it possible to specify which network device should be used when running something in the Terminal? Like $ rails [only communicate through deviceA] Not just app, but instance specific, so ...
2
votes
1answer
40 views

How can I tell what model iDevice is plugged into my USB via Terminal?

This website has a useful list of the various iDevice models. And the "identifier" column is helpful for any iOS developers, as this is the string you can fetch in your application to determine what ...
0
votes
1answer
50 views

Can I launch the File (Save/Open) Dialog from the command line?

Bash and vim's file completion facilities are effective for navigating through a few levels of a directory structure, but can be cumbersome when working with unfamiliar directories. Alternatively, I ...
2
votes
3answers
631 views

Sync apps preferences between multiple Macs

I tend to keep all my stuff in Dropbox. Now that I bought a second Mac, I thought that keeping also my applications preferences in Dropbox would have been a good idea. I managed to sync some of the ...
2
votes
1answer
37 views

Keeping Finder in sync with changes made in Terminal?

Until Yosemite, I could work in the Terminal and file system changes would be immediately updated in Finder. Now, however, Finder seems to be out of sync with the filesystem. Finder shows files I have ...
4
votes
1answer
60 views

Launchd starts event 40 seconds later?

I've created a .plist file, which should act as system daemon (global with root user). This .plist file listens to the settings directory for changes like changing network settings. When this happens ...
0
votes
1answer
21 views

Is there a way to immediately exit a hanging connection in Terminal?

I often have SSH connections through Terminal that stop responding (like if I've left it overnight) but when I try to use the dead connection Terminal doesn't respond for several minutes until: Write ...
0
votes
0answers
22 views

Path Finder 7: Using Terminal at bottom - not able to place @ sign

I am having troubles to place the normal @ (at) sign in the terminal in path finder. I do have German keyboard Layout, which means the @ sign is "option/alt + L". Simply nothing happens. Did someone ...
4
votes
2answers
187 views

How can I get 256 colors on the default Terminal over SSH?

Lots of similar questions, but I can't quite seem to find anything that is an exact match. I am using the default Terminal (in Yosemite) to SSH into a VM. The VM's terminal is set up to use ...
79
votes
23answers
75k views

OS X Terminal “must have” utilities

I've just read with pleasure, and learned a lot from these questions : OS X Terminal Tips and Tricks OS X Hidden features and nice tips & tricks OS X Applications you can't live without But I ...
18
votes
9answers
2k views

Case-insensitive ls sorting in Mac OSX

How can I make the ls command in Max OS X Lion sort files and directories similar to how Ubuntu Linux does (case-insensitive, directories NOT on top, dot files NOT on top)? Ideally I'd like to do ...
0
votes
2answers
426 views

What does update_terminal_cwd do in the terminal of OS X

I am puzzled by it for quite some while now. In $PROMPT_COMMAND of the bash in OS X, there is a command called update_terminal_cwd. I am sure it's not a bash built in, and most likely only exists in ...
0
votes
0answers
9 views

How can I get TexLive to install?

I just bought my third Mac, this one with OS 10.9.5. My previous one was stolen, but I had backed it up with Time Machine. When I started this one up, I connected the backup drive from the old ...
0
votes
1answer
31 views

Execute Terminal Command fails in BetterTouchTool. Why?

I've installed Ouimeaux to control a Belkin Wemo on OSX, and it's working correctly in Terminal - meaning that the following command in Terminal will toggle my Wemo switch on/off: wemo switch ...
0
votes
2answers
49 views

Percent character breaks Terminal

If I type the % character in the Terminal, it breaks that shell and every new shell I open until reboot: $ seq 10 | parallel -j50% "echo Hi {}" -bash: printf: `"': invalid format character Does ...
0
votes
1answer
79 views

SSH using IPV6 getting error “No Route to Host” On My Mac Machine

I am trying to ssh with ipv6 in my mac machine but I am getting error "No Route to Host". I can it successfully with ipv4. Can anyone guide me please if it require any network setting or else? I am ...
1
vote
0answers
16 views

Terminal 3 failed password attempts

I've got a really funny issue with my Mac at the moment. I was using a sudo command and it rejected my password 3 times (I double checked and the password was correct) but now I can't do anything as ...
0
votes
1answer
191 views

Yosemite 10.10.1 - ssh - no connection (time-out) and strange redirect

I hope I can get some help with a rather strange problem on my late 2013 MacBookPro running Yosemite 10.10.1 Up until 3 days ago, I could ssh into my server without any problems. I then updated to ...
0
votes
0answers
107 views

Terminal.app magically changing color values

Terminal.app does some very odd color shifting that makes it impossible to match colors consistently, and I'm wondering if there is any way to disable it or better control it. The "magic" is what ...
0
votes
0answers
11 views

Uninstall CheckPoint VPN Script Prompting For Password

When running the uninstaller sh script in the CheckPoint VPN package from terminal I get prompted for the usual authentication window. But the authentication window does not have focus so when I type ...
0
votes
1answer
50 views

SSH with ipv6 working only if I pass %en0 with my ipv6 address

I am trying to ssh with Mac OS X (10.10.1 Yosemite) terminal using ipv6. If I use command like ssh username@ipv6_address It's not working and I am getting error "No Route to Host". But If I use ...
5
votes
3answers
3k 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 ...
5
votes
4answers
2k views

Is there a way to remotely restart Finder (or wake-up the desktop) from SSH?

Over the last few months I've found my MacBook Pro is getting increasingly unwilling to wake-up if it's gone to sleep of it's own accord - not when I put it to sleep deliberately, but when the machine ...
1
vote
1answer
32 views

Terminal command to change Privilege of “everyone” to “No Access”

I want to change the privilege of a specific folder for the "everyone" group to No Access. I have tried chmod o--- that doesnt seem to work but I am most likely doing it wrong. I know that If I click ...
0
votes
1answer
106 views

OS X Terminal – Open Tab in current directory, troubles with umlauts

I run OS X 10.7.5. I am currently experiencing an issue with Terminal. I have enabled the option to open new tabs in the current working directory. However, this does not work as expected, when the ...
0
votes
0answers
21 views

Damaged preference file in /bin/sh

Today in Drive Genius 3, I ran the “Verify Preferences” function in Repair. It yielded this strange result: /bin/sh: xargs: command not found The only option Drive Genius gives is to remove the ...
1
vote
2answers
321 views

My Press and hold accents have been disabled in Yosemite

I just got Yosemite and now my Press and hold accent capability seems to have disappeared with my old software. I tried using /System/Library/Input Methods/PressAndHold.app in Terminal to find Press ...