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
2answers
273 views

Create custom shortcuts and assign them to F keys

I recently migrated to OS X 10.10 from Ubuntu 14.04 (Linux). In Ubuntu, I could make any key of my keyboard do anything I liked. I used to have the F1, F2, and F3 keys set to function as the red, ...
1
vote
0answers
43 views

Mac Terminal (+bash +tmux +set-o vi) missing characters at end of line

Often when editing a historical bash command in vi mode (after pressing ↑), and then moving backwards in the text using b. When I begin editing the text after pressing i or a, the extra text I insert ...
0
votes
1answer
56 views

About this Mac - Storage information on terminal

I am trying to reproduce the About this Mac - Storage window in the terminal. Is there any easy way to do this ? For the moment, the following commands are working (quite fast): mdfind kind:music ...
0
votes
1answer
54 views

How to create a 'Sharing Only' account via terminal in OS X?

I'm attempting to create a 'Sharing Only' account in an OS X app. I've tried code based on examples like these: Can user accounts be managed via the command line? What steps are needed to create a ...
3
votes
1answer
102 views

How to make Font size equal to 15 in Terminal on Yosemite?

Here are the configuration settings for the Terminal app in Yosemite. It shows that I can set font size to the distinct values given in Terminal. How can I set it to some other in-between value ...
61
votes
14answers
57k 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.
0
votes
0answers
19 views

Sending data to serial port and audio device from command line

I am looking to create a scripts that does the following: Send data to a non-standard serial port, in my case /dev/cu.SLAB_USBtoUART. Plays an audio file to a non-standard audio device, in my case a ...
0
votes
0answers
28 views

ssh -X fails to start x11 forwarding if x11 is not already running

When I try to ssh -X user@someserver using Terminal.app, x11 does not open and run. I am running OSX 10.10.4 and XQuartz 2.7.7. Previously when I used 10.6.8, x11 would automatically open and run ...
1
vote
2answers
29 views

Formatting 'defaults domains' output on multiple lines

Just a quick question here. I'm trying to format the output of the command: defaults domains so that it puts each domain on a new line, so I can use that parsed output in a different command. I've ...
8
votes
3answers
3k views

How to programatically add folder to Spotlight “do not index”?

Is there any way to programmatically add a folder to Spotlight's "Privacy" tab? Either through Terminal or Applescript? Often I want to click on an item in Spotlight results in Finder, and have that ...
4
votes
1answer
2k views

enabling/disabling Internet Sharing with terminal in mac osx 10.9.2

The problem is setting the internet sharing with CLI instead of GUI in Mac OS 10.9.2 I followed instructions as per this thread Start/stop internet sharing from a script? including both CLI and ...
0
votes
0answers
44 views

How do I back up iTunes to an NAS device

I followed your questions/answers on how to backup iTunes to a different location. I am using an WDMyCloudEX2 NAS drive which shares music, videos and photos with all devices in the house. I have been ...
1
vote
1answer
38 views

How to start Tunnelblick VPN connection via Terminal

I can connect/disconnect using the Tunnelblick app. How do I connect via the command line? /Applications/Tunnelblick.app/Contents/Resources/openvpnstart start ??? How do I determine the parameters ...
0
votes
2answers
30 views

What's the meaning of the first two lines occurring after opening a Terminal window?

I have an issue when I'm connected to public Wi-Fi networks with my Terminal, When I run it, I see the following: Last login: Sun Jul 26 11:58:02 on ttys001 Inbal-TOSH:~ chen$ 'Inbal-TOSH' is a ...
1
vote
1answer
91 views

How to stop 'locate' from using databases for unmounted volumes?

Despite the claim made in the answer to this question: Can Spotlight show results for disconnected drives? This is exactly the behaviour I am seeing and I don't want it! E.g. wms:~ alan$ ls ...
1
vote
1answer
35 views

Library not loaded: /usr/lib/libaprutil-1.0.dylib

I'm trying to use subversion, SVN, through the terminal on my Mac OS X 10.10, Yosemite. I installed Xcode and the Developer tools, and I installed svn via homebrew. whenever I try to run svn, I ...
3
votes
1answer
45 views

Put Back from trash from Terminal

I sent a lot of files and directories from an external hard drive into the trash by mistake. All those files and directories had the same grandfather directory but not the same father directory. I can ...
0
votes
1answer
52 views

How to start xgterm terminal in OS X Yosemite

I have installed x11 and can use it to open an xterm terminal. I do not, however, see an xgterm option in x11. Further $xgterm & results in sespe:iraf user$ -bash: xgterm: command not found. How ...
15
votes
3answers
5k views

Does OS X's terminal app support mouse?

According to this answer over at SuperUser, OS X's terminal app should use Alt+Mouse Click to send mouse events to applications running in the terminal. I tried that with the Midnight Commander, but ...
11
votes
3answers
8k views

Can I install or update Mac App Store apps through a command line using terminal?

Is there an official way provided by Apple or a workaround so that I can install or update Mac App Store apps through Terminal?
0
votes
1answer
18 views

How to split screen in TotalTerminal to end up with two terminals?

Often when you have ssh'ed into a server, you could like a second terminal to continue right off there, without having to ssh again. I know that iTerm2 can do it, but it feels buggy on multi screens. ...
1
vote
2answers
84 views

Why doesn't the 'rm' command dump file in Trash?

Using the rm 'filename' command, i have noticed that the file isn't actually deposited into the trash. I realise that this isn't completely removing the file from the computer, however im perplexed as ...
8
votes
1answer
2k views

Why does the folder icon in my Terminal have a question mark overlaid?

From time to time, I spot that the folder icon in the titlebar of one of my Terminal windows has a question mark overlaid on it, e.g. this one: What does this mean? It doesn't seem to have any ...
0
votes
0answers
18 views

How to undo a $PATH variable change? [duplicate]

Is it possible to undo a change to the $PATH variable on OS X Yosemite? I was trying to add to the $PATH and accidentally changed the entire thing to one path. I just need to know if I can undo this ...
2
votes
1answer
59 views

Shell Script Commands Work Fine in Terminal But Not Via AppleScript

I have two commands that I need to run through the Terminal. They are cd /Users/[my name]/Desktop and curl 'www.google.com'>google.txt. When running these directly in Terminal they work just fine. ...
-2
votes
2answers
42 views

Command and Terminal.app - again [closed]

This has been the subject of a lot of discussions before and of a lot of answers. However, I have only found workarounds and band aids so far. My seemingly simple goal is to obtain the same behaviour ...
0
votes
1answer
42 views

How do I 'pause' in a .command-script?

I want to create a .command-script on Mac, to execute a series of commands on a remote server using SSH. My script looks something like this: ssh user@domain.com cd /var/www/website/ git pull ...
2
votes
1answer
57 views

Suggestions for copying iTunes songs and playlists to SDCARD/player and cleaning up the “name mess”?

This might be a bit of an odd one. I have a collection on songs in iTunes and I'd like to copy it to an SDCARD to play it on my car's radio, together with the playlists I have to listen to the music ...
25
votes
5answers
4k views

Did `man ls > temp.txt`. Output textfile is corrupted

When I execute man ls > temp.txt the output text file is corrupted. By corrupted I mean that first and last letters in some words are overly repeated. Several first lines in temp.txt: LS(1) ...
1
vote
2answers
38 views

How to find command line program with which

I am trying to remove all traces of Ureka. I followed the instructions in the link to do this, but when I test if it is gone with $ur_setup I see that the terminal does know what it should be looking ...
0
votes
2answers
171 views

Update bash to version 4.0 on OSX

Is it possible to actually update bash to version 4.0 in OSX Yosemite? echo $BASH_VERSION 3.2.57(1)-release This article and this thread refer to the same question, but they install a new shell ...
0
votes
1answer
33 views

How do I use llvm-profdata in Mac OS X Yosimite?

I have a simple question: how do I use the llvm-profdata binary provided by XCode's Command Line Tools in the terminal? I have installed the Command Line Tools and could see the binary in ...
0
votes
1answer
16 views

How to restore manually Saved State files of Terminal?

My MBR crashes quite often. Normally I've multiple terminal windows and usually they're restored after crash. However from some to time they're not restored, so for that reason I was doing the backup ...
0
votes
1answer
59 views

Sudo giving dyld problem. Help for a beginner

I am new to using a macbook terminal. Initially when I used the terminal for working on Raspberry Pi everything was great. But now when I try to use the terminal and type sudo it keeps giving a dyld ...
4
votes
2answers
193 views

How can I display contents of trash using terminal?

How can I display contents of trash using terminal?
0
votes
1answer
48 views

how to run open -n applicaton name from command line?

I got these two lines that I want to run from a script file (on Yosemite 10.10.3). It works when running from terminal CX_LICENSE=LS open -n /Applications/Inspire\ Designer\ 10.0\ GA/Inspire\ ...
1
vote
0answers
40 views

Set environment variable for iCloud Drive path

Foreword Setting env vars on Yosemite seems to be really a pain, but I've managed doing it thanks to this clever way: ...
6
votes
2answers
11k views

how to get shell scripts to run at startup on Yosemite

There is a directory in System/Library for startup items I presume: StartupItems I need to have a shell script that will configure ethernet interface at start up, with local network address and ...
1
vote
1answer
41 views

Applescript Calculate Run Time of a Command

How would you calculate the time it took to run a command? Specifically, I want to know the time it takes to return a value in a Shell command. I wrote this up, would it work? (Psuedocode) ...
0
votes
0answers
32 views

Terminal Failing to login

Suddenly, when I attempted to create a new terminal window, it fails. It does nothing for about a minute then shows only this: Login incorrect login: Typing in my username doesn't work. I get the ...
13
votes
4answers
7k 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 ...
17
votes
3answers
10k views

Log out other user w/o first switching to that user

My wife use separate accounts and quick user switching on a MBP running 10.6. Sometimes I want to log her out to free up some RAM, but I'd like to avoid logging in as her, logging out, then logging ...
2
votes
1answer
70 views

Control - C on a password prompt on the terminal

Occasionally, I request something with sudo, but change my mind after the password prompt has arisen. If the program was executing, I could press Control+C to exit, but this has no effect on the ...
0
votes
2answers
46 views

Can't find MIT/GNU Scheme in Applications after install

I installed program called "MIT/GNU Scheme" to /Applications. I can run it via Spotlight, but it says it's from unidentified developer. So I should find it in the folder and right click open, but it's ...
3
votes
1answer
43 views

Permanently saving changes to $PATH [duplicate]

I have ruby and homebrew running for a while and I'm starting to play with Bash. I have encountered a problem with my PATH variable as echo'd: ...
3
votes
4answers
27k views
0
votes
2answers
44 views

Dock shortcut for an interactive bash script

I'm new to OSX and all I want it an application shortcut in Dock that opens the terminal and types the first command and waits for me to provide the password. Here is the script I want to run: ...
0
votes
2answers
74 views

Why are the terminal color brighter than the ones I set?

I've changed my terminal's color but, as always, the color I set are rendered brighter than they really are. Here's the proof, I set the exact same color on ST and on my term, you can clearly see the ...
0
votes
1answer
184 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 ...
2
votes
0answers
20 views

Terminal: disable printing/output of keyboard commands

I have the same problem as this person – I am running a C script and somehow when I pass the EOF signal with Ctrl+D, ^D gets printed to the console. My question is therefore: is it possible to ...