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
2 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
20 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
17 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
12 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
0answers
27 views

Add item to Finder toolbar with terminal?

You can cmd-drag an item to the Finder toolbar to have it there permanently, but is there a way you do this in the Terminal? The closest I've found is this old thread: ...
0
votes
2answers
24 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 ...
0
votes
2answers
28 views

Dropbox vs Github for dotfiles sync? [on hold]

For the last few years I've been using Dropbox to sync my dotfiles. For zsh, oh-my-zsh, emacs settings etc. More people seem to be using Github for this. Are there any advantages in this? From what ...
1
vote
1answer
20 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
30 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
21 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 ...
0
votes
0answers
11 views

Alt[Option] key not working as meta when ssh a linux server from Mac

I use emacs on my Mac locally, I'm also using iTerm2 as the terminal tool. By setting the 'Preferences--> Profiles-->Keys--> Left option key acts as +Esc'. I can use the left alt key as meta if I ...
14
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
7k 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?
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 ...
-1
votes
0answers
25 views

Ensuring network connections are 'synched' with Yosemite [closed]

I am looking for commands relating to networking, maybe for Terminal. With windows there are commands to close ports, flush DNS and other important things. What are good Terminal commands for a ...
0
votes
1answer
11 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
75 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
1answer
25 views

Applescript “expected then but found identifier”

At present, I have a very simple bash script which calls osascript -e a bunch of times; it looks like this (newlines added for readability): #!/bin/sh osascript \ -e 'tell application "Terminal" to ...
0
votes
0answers
17 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
46 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. ...
0
votes
0answers
18 views

Switch spaces on secondary monitor without switching primary monitor

Kind of hard to describe. Using a mac with two monitors. I use a lot of terminal windows at work (4 on my left monitor, main desktop screen", and 4 on my right monitor but on the secondary "desktop ...
-2
votes
2answers
39 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
27 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
16 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) ...
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 ...
1
vote
2answers
30 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
103 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 ...
4
votes
2answers
2k 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 ...
0
votes
1answer
16 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
8 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
54 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
176 views

How can I display contents of trash using terminal?

How can I display contents of trash using terminal?
0
votes
2answers
38 views

command + delete in terminal

Often, when I'm typing in a super long command(usually ruby on rails console code), I decide that I need to do something else first and therefore, have to delete the command which I just typed(but not ...
0
votes
1answer
45 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
22 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: ...
5
votes
2answers
9k 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
22 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
1answer
41 views

Login and execution of every command is slow in Terminal [closed]

I upgraded my system to OS X 10.11, everything works fine, but terminal is really slow. Login and execution of every command would take 5-10 seconds(also high CPU usage by bash and kernel_task). And ...
0
votes
0answers
26 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
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 ...
15
votes
3answers
9k 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
54 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
35 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
32 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
25k views