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

Excel Mac - Some txt files can't be opened/imported (“Grayed out”)

A bit of an odd one. I'm using Excel for crunching some data I have in several .txt files. When I'm trying to import them via Data > Get External Data > Import Text File: Like as I've done many ...
0
votes
0answers
12 views

Restart Apple Airport Extreme from the terminal? [duplicate]

Can one restart an Aiport Extreme from the terminal? If so, how?
1
vote
1answer
55 views

Unable to force quit Chrome (Yosemite) OS X 10.10.4

I tried to force quit Google Chrome when it started to hang while the other applications (Safari) was working fine. However, it didn't shut cut as usual and just leaves me hanging. I tried to search ...
0
votes
1answer
37 views

Recover FIles/Folder from sudo rm -rf Terminal Command

Short Story: I was attempting to create a symlinked folder from my external to my desktop, and the folder I wanted (ALL of my working folders and files) are gone. Long Story: My job wanted me to use ...
0
votes
2answers
35 views

start.command permission denied even after chmod

I have been trying to run my server.command file forever. I have tried changing access privileges with chmod x+u pressing enter then dragging the file into Terminal and pressing enter, but when I do, ...
0
votes
1answer
29 views

OS X Traceroute Command: what is '*'

Using the traceroute command in OS X 10.9.x, multiple '*' characters are printed as output. Can anyone explain exactly what these are and what they mean? Command output example: traceroute to ...
0
votes
2answers
56 views

Shell command to count pages in a PDF (other than pdftk)?

I have been using this to get a page count of PDFs in shell scripts in OS X: pdftk "$i" dump_data | grep NumberOfPages | awk '{print $2}' | tr -dc '[0-9]' (where $i is the PDF filename) However, ...
1
vote
0answers
42 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 ...
3
votes
1answer
101 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 ...
0
votes
2answers
60 views

I get a bash syntax error message every time I open Terminal

I've been getting this error for the past couple of months and I wonder if it's a major issue, and how do I fix it? When I open terminal on my Mac I get this bash error: ~bash: ...
0
votes
1answer
52 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 ...
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
26 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 ...
0
votes
0answers
42 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 ...
0
votes
2answers
47 views

Dropbox vs Github for dotfiles sync? [closed]

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 ...
3
votes
1answer
126 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: ...
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
44 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 ...
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. ...
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. ...
0
votes
0answers
104 views

Switching spaces on one monitor affects open applications on other monitor; looking to prevent this - BOUNTY

Kind of hard to describe. Using Yosemite 10.10.3. Using a mac with two monitors. Left monitor has one desktop space. Right monitor has two desktop spaces. I use a lot of terminal windows at work ...
-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
40 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 ...
0
votes
2answers
54 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 ...
2
votes
1answer
52 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 ...
1
vote
2answers
37 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
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
32 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 ...
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: ...
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
31 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 ...
4
votes
2answers
192 views

How can I display contents of trash using terminal?

How can I display contents of trash using terminal?
3
votes
1answer
41 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: ...
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 ...
0
votes
3answers
53 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 ...
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 ...
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) ...
0
votes
1answer
57 views

How to generate a (valid) PDF with “a2ps foo.txt”?

I installed a2ps on Mac OS X 10.10.4 via brew. My ~/.a2psrc contains Options: --medium=Letter -P pdf. But when I do a2ps foo.txt no PDF file is generated (this used to work on Ubuntu/Debian Linux). ...
0
votes
1answer
31 views

How can I set the region in Terminal

I want to change the Region via Terminal. How can I do this ? Ideally it would use a command (/usr/bin or sbin) or modify a plist (plistbuddy). I'd love to avoid using osascript (AppleScript)
0
votes
0answers
34 views

environment.plist adds extra characters?

OSX Yosemite 10.10.3 I used environment.plist <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" ...
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\ ...
0
votes
1answer
23 views

fs_usage returns a LOT of ioctl lines

I've been reading up on interesting Terminal commands (I've used it forever, but there's always more to learn) when I ran across this. I ran sudo fs_usage and got a whole lot of this: ... 13:39:09 ...
0
votes
1answer
25 views

How to minimise the terminal automatically when it is running a shell script?

I have a shell script which runs a Python Program. I created the shell script so that the users of my program may simply double click it to run my program. When the shell script is executed; the ...
0
votes
1answer
23 views

How do you get terminal to echo / print all key strokes?

Looking to see what the terminal gets when you press keystrokes such as alt+a or whatever. I remember there was a really simple way to do this with a one line command and without installing any extra ...