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

1
vote
1answer
115 views

Mailto links on websites open iTerm instead of Mail

In both Chrome and Safari mailto: links open up iTerm instead of Mail. This seemed to have started happening right around the same time I added a shortcut through Settings > Keyboard > Shortcuts > ...
0
votes
5answers
953 views

why cannot I edit my `hosts` file?

I'm trying to edit my hosts file, because doing ssh <some host in hosts> fails to translate to ip. according to the Finder UI it is found under: however when trying to run cat hosts from the ...
0
votes
3answers
71 views

I broke PATH in terminal and I can not restore it

in .bash_profile I accidentally set the path to: PATH="~/Tools/apache-maven-3.3.3/bin" and now the default path is gone. Nothing in Terminal works anymore: Korays-MacBook-Pro:~ koraytugay$ ls ...
0
votes
0answers
12 views

Silent installer for remote macines

I am trying to create a script to install logmein silently (or in the background) with out enduser input. I have the process to download the zip and create an admin user (for later login) however I ...
15
votes
2answers
29k views

Using terminal to get current fan speed?

I would like to view the current fan speeds of my MacBook and iMac using terminal. I've found that running spindump then cat /tmp/spindump.txt | grep "Fan speed" will show it, but that's very slow and ...
2
votes
1answer
317 views

Removing computer name from terminal

Right now, this is what my Terminal shows: MyName's-MacBookPro:location MyName$ I'd like for it to only show my name, so something like this: MyName$ When I browsed online for a solution, they ...
2
votes
3answers
2k views

Installing Mavericks via Terminal

I have the Install OS X Mavericks.app in Recovery Mode and I want to execute it somehow to start the installation from the terminal, so I don't need the internet connection. I executed the ...
30
votes
7answers
9k 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 ...
3
votes
2answers
3k views

Show Results of Automator-Terminal command

TL;DR If I create a .app via Automator, how can I show results of a shell script in a dialog or terminal window? I am using Automator to run a shell script adb install /Directory/$1.apk and if I ...
0
votes
1answer
262 views

What does `brew man` do?

I mean brew man, not man brew. It says: Fetching: hpricot-0.8.6.gem (100%) Building native extensions. This could take a while... Successfully installed hpricot-0.8.6 Fetching: ...
0
votes
1answer
16 views

problems installing homebrew on mavericks

I tried to install homebrew (OSX 10.9.5) using the recommended ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" but got Illegal variable name. I do have ...
4
votes
2answers
1k 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
2answers
61 views

Install Monokai Theme on Terminal with prompt colors, etc.?

I already have a Monokai theme installed in Terminal, as so: I was wondering how I could get the rest of the Monokai (as Sublime uses) into Terminal? Like, making the prompt (Gamma@~) colored, etc. ...
0
votes
0answers
11 views

Incompatible library version with mpicxx

I am trying to compile a c++ code to a dynamically linked library on my Mac v10.10 I am hoping the error I receive isn't specific to the c++ code, rather thatI am missing some dependencies. I run ...
3
votes
1answer
80 views

bug with rsync changing modification dates even with the -a option

I have been testing rsync and found a weird bug when copying files and folders from a partition to another: If I do this: rsync -avE --delete '/Volumes/disk1/origin/' '/Volumes/disk2/destination/' ...
0
votes
2answers
245 views

How to get rid of emoji (emoticons) in Terminal.app (OS X 10.9)

I am experimenting with Twitter API. I now have emoji characters in Terminal.app. I don't know how to handle that. How to get rid of that or use it well? see screenshot
1
vote
3answers
1k views

Yosemite does not have ftp sharing option in file sharing preferences?

I have just obtained a Macbook Pro with Yosemite installed and am trying to connect to it from another host on the local network via ftp. The connection is refused. So I get into the preferences in ...
0
votes
1answer
11 views

Change mail back to embedding attachments

I wanted to attach a photo and not embed it so I did the following: If you would like Mail to do this automatically with all attachments, try the following Terminal command: defaults write ...
6
votes
2answers
85 views

Make files in `/usr/local` writable for homebrew

I've been trying to get homebrew working nicely, but it appears everything inside /usr/local isn't writable, and everything falls over. It keeps telling me to recursively chown /usr/local, and I ...
0
votes
0answers
15 views

Making a Damaged USB Writable for Drive Genius?

Apologies for being (sort of) a repost from Unable to be Repaired & Further Problems but I had some further questions and I was worried they wouldn't be answered. I followed Froggard's advice and ...
0
votes
1answer
29 views

The disk “Vol” couldn’t be ejected because “Terminal” is using it

I have connected an External hard disk to Mac and just issued command df -h in terminal. When I tried to eject drive it shows the error. After closing terminal, I could eject it. But is that really ...
0
votes
0answers
25 views

os.Popen command is not working

I'm writing a python script that is suppose to change default display settings for all users. I run the script as sudo because it needs to change every display. This line is suppose to change the ...
0
votes
0answers
12 views

To use XCode for Deparse converted Perl Script [migrated]

Minimum Script for Practicing conversion of terminal scripts into Perl and using them finally in Xcode use strict; use warnings; ## Conversion of one-liner into Script by perl -MO=Deparse # Original ...
0
votes
1answer
35 views

Missing Mail.app in Finder, but exists in /Applications folder

I've not ever wanted to use the Mail app on my Mavericks machine, but recently I decided I'd give it a shot. However when I went to Applications in Finder, I couldn't see it. Nor was it in ...
12
votes
3answers
6k views

reattach terminal tab to another window

Suppose you have a terminal with two tabs. You click, drag, and let go one of these tabs and it becomes an independent terminal window. After a while, you want to take this terminal window and ...
1
vote
0answers
51 views

Cannot create hidden user in Yosemite

I am currently trying to make a hidden user on Yosemite. I have tried to follow tutorials from this site, however when I run the command sudo dscl . append /Groups/<real_name> GroupMembership ...
0
votes
3answers
19 views

Comfortable way to archive and log terminal input

I often want to reuse a terminal command that I already used in the past. I know two ways how to do this: Use the "up" arrow to browse through old commands. Copy a bunch of commands into a script. ...
1
vote
1answer
38 views

Infinite scrollback in Terminal (Yosemite)

I would like to save the scrollback history in terminal basically forever. I don't mean bash history, I mean all the text that ever scrolled past in the terminal, not just the commands entered. I ...
2
votes
2answers
61 views

How to find the currently connected network service from the command line?

I would like to find out which of the available network services (e.g. Ethernet or Wi-Fi) is currently active. In this screenshot from the Network Preferences, you can see that Wi-Fi is currently ...
10
votes
2answers
1k views

How to prevent 'sudo rm -rf /'

A few times I have accidentally executed the command sudo rm -rf /. Is there a way how to prevent me from running this command? For example can I somehow disable it using the sudoers file?
0
votes
1answer
18 views

PC user wants Windows/Linux key mappings [duplicate]

I'm a long-time PC and Linux user. Recently, I was given a mac mini (Yosemite) for my job. I've still got my full-size PC keyboard (with number pad). There are several differences. The biggest one is ...
-1
votes
1answer
24 views

How do I configure my Terminal app with bash and iTerm2 with zshell and oh my zsh?

The Terminal app uses bash by default. And I don't want to change it. However I want to configure iTerm2 with zshell and oh my zsh. and I don't want bash on it. The instructions I checked online, make ...
6
votes
1answer
12k views

SSH request timeout every time

I am trying to access a storage space we have at work via ssh but I get a timeout every single time (Mac OS 10.7.5 - Terminal). I checked firewalls, settings, even turned off Little Snitch, and port ...
-1
votes
1answer
34 views

Terminal command to delete everything I've ever created

I have so much junk installed on my work laptop I want to start with a fresh machine. However, I must keep the account I have as I do not have system permissions to create another account. How can I ...
1
vote
3answers
84 views

To give STDIN for Sed?

Pseudocommand echo '1,2,3,5' | sed -n data.txt which gives sed: 1: "data.txt": extra characters at the end of d command I want to give linenumbers for search from other command. Actually awk ...
0
votes
1answer
2k views

Terminal ~/.profile does not contain `source ~/.bashrc` in OS X 10.9.1

Terminal shows below on this stage on gerris installation page: http://gfs.sourceforge.net/wiki/index.php/Mac_OSX_Installation Note: make sure that the file ~/.profile contains the line source ...
5
votes
1answer
592 views

Why does OS X terminal need manually sourcing to display colour?

I have the following in my ~/.bash_profile file: export CLICOLOR=1 export PS1="$FBLU[\#]$RS--$RS{\t}$RS$FWHT\W$RS$FMAG@$RS$FRED\u$RS$FCYN\$$RS$FBLU>>>$RS" # ANSI color codes RS="\[\033[0m\]" ...
1
vote
3answers
59 views

Upgraded to Yosemite, mkdir now says “permission denied”

I upgraded from OS 10.7.3 to 10.10.3. Now I get "permission denied" when I run mkdir on folders that I own and have full permission. For example : I own a folder called ...
1
vote
0answers
17 views

Airdrop between newer and older macs without clicking the “Search for an older Mac” button

I have a new MacBook Pro running Yosemite 10.10.3 and an older Mac Mini running Lion 10.7.5. Airdrop works in both directions, provided that if I am transferring from my MBP to my Mini, I click the ...
3
votes
3answers
326 views

Downscale a iMac 5K screenshot to 50% using commandline

Open the Screenshot in Preview Select “Adjust Size…” from the Tools menu Change the Width and Height to 50 percent of the original Change the Resolution to 72 pixels/inch I wish to do this on CLI ...
7
votes
2answers
652 views

How to isolate processes that evoke insane mds_stores disk read activity?

I have an interesting situation where when I monitor my disk activity, I find that mds_store is continually running between 1 to 35 megabytes per second (averaging around 3-5 MB/s) on the read and ...
2
votes
2answers
2k 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 ...
14
votes
8answers
9k views

Is there any multiple terminal emulator for Mac OS?

I love the command line and I would like to see an app like Terminator (for Linux) in my MacOs: It seems there are ports of that app for Mac available using Fink or Ports. But I found it's a hell ...
192
votes
8answers
110k 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
4
votes
2answers
114 views

Why is Terminal.app corrupting my tcsh history?

I've had an ongoing problem that appears to be specific to OS X and Terminal.app: periodically, I get garbage in my tcsh history that looks like this: ^[[1m^[[4mcomputername:~/Code/emacs-source ( ...
0
votes
0answers
16 views

MacPorts issue with FreeType10.10

I'm using MacPorts to run Windows executables through Wine, everything went fine until all this suddenly went kaput for this reason: Wine cannot find the FreeType font library. To enable Wine to ...
1
vote
0answers
26 views

How to set the colour of a folder with a specific name on mac terminal?

I am using these four lines in my .bash_profile file to enable colouring on my mac terminal (Mac OS Yosemite). export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$ " ...
0
votes
1answer
55 views

Restore scrollbuffer and tabs in iTerm as Terminal.app does

I love the restore functionailty of the Terminal.app when the app crashes or I need to restart my computer, Terminal.app will show me the recent scrollbuffer for the tabs I have open with a - ...
1
vote
1answer
28 views

Cleaning off packages installed via Terminal on OSX

I have been learning to use Terminal to install packages (particularly to learn Ruby development). I believe that I'm experiencing some conflicts with things that have been installed and would like to ...
2
votes
2answers
62 views

How do I find the path of a file on another computer on my network?

I would like to access files from another computer on the same network in the Terminal. But I am not sure of the path to those files. How do I find it?