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
1answer
15 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
12 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
8 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 ...
0
votes
1answer
10 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
votes
0answers
19 views

Ensuring network connections are 'synched' with Yosemite [on hold]

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
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
43 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
15 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 [on hold]

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 ...
0
votes
1answer
23 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
15 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
29 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
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
12 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
20 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
21 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
32 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 ...
4
votes
2answers
173 views

How can I display contents of trash using terminal?

How can I display contents of trash using terminal?
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: ...
0
votes
2answers
33 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
2answers
37 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
16 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
40 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
24 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
32 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
43 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
21 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
24 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
21 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 ...
0
votes
0answers
38 views

Make trackpad quiet in Yosemite

In El Capitan there is a setting that allows you to make the click of force touch trackpads (2015 MB. 2015 MBP) silent. I have tried this out in El Capitan public beta and liked it, however since I ...
0
votes
2answers
30 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
0answers
14 views

users with same uid

I was reading a question about users with same UID. tried his posted command dscl . -list uid | sort -nrk 2 to see what I got. 2 of them share UID 0 root and untitled. UID -2 is named nobody. daemon ...
0
votes
0answers
24 views

How to find and delete users that only show in Password Utility?

While using disk utility to fix permissions, I kept getting a ton of different ACL found but not expected on Library/files. I searched for a fix after using disk utility multiple times. I kept coming ...
0
votes
1answer
71 views

How to change a directory name?

My home directory was not where it was supposed to be. I was able to fix the directory location. Then needed to fix the permission of home directory with $ cd /Users/ $ sudo chown -R hook1:staff ...
0
votes
1answer
25 views

osascript Expected end of line but found class name?

Not really sure what its expecting here, I assume its around click button though. This used to work on 10.10.3, but seems to have stopped on 10.10.4? Script function AcceptSecurity () { osascript ...
0
votes
1answer
16 views

Time Machine: Is it possible to exclude 5000+ files via TMUTIL?

Is there a limit to the number of files which can be excluded in TimeMachine? I have 5000+ photos on an external drive along with their associated sidecar files. The photos are large and never ...
0
votes
0answers
37 views

Mac doesn't recognise simple commands like 'ls'

I installed Apache and tried to change the permissions for one of Apache's working directories. After that my machine keeps changing the default path. I can't access the simple commands unless I set ...
0
votes
0answers
16 views

Close Boot2docker terminal window without killing it

I use the Boot2docker application to initialize a virtualbox development environment. I have to leave this window open or it dies. Is there any way I can close the terminal window and have it ...
0
votes
0answers
19 views

using FISH shell — set default folder for multiple tabs?

I'm using fish shell in OS X. Using the standard bash shell, you can open multiple tabs in Terminal, cd to a different directory in each, and then save the setup as a Window Group (via Window > ...
-2
votes
1answer
15 views

Stop powerline hovering above bottom of full-screen terminal

When in full-screen mode ("full-full", not just maximised with menu bar still showing) Powerline inside Terminal.app hovers slightly (about it's own height) above the bottom of the screen. Does ...
1
vote
1answer
35 views

How can I change 'history' command output?

So by default .bash_history stores 500 last used commands. I changed that to 5000 by setting HISTFILESIZE=5000 in .bash_profile It seems to work. Now when I do history it still prints 500 commands, ...
0
votes
0answers
25 views

File name autocompletion stopped working in Terminal

I just noticed this. Previously, when I typed cd Doc<tab> I would get cd Documents. Now I get cd Doc. If I hit tab again it just appends more tabs. I only have one Doc* directory: $ ls -d ...
0
votes
1answer
31 views

Why isn't this alias in terminal working?

The alias's objective is to launch a pdf in my chrome browser. The pdf is entitled "Intro to Java.pdf"; the browser is "Google Chrome" alias x='open -a "Google Chrome" ...
0
votes
0answers
14 views

launchctl error “nothing found to load” when run via cron

On OS X 10.9, I'm running a script via my user crontab (added using crontab -e) which, under some specific conditions (not related to this question), will run the following command to launch a menubar ...
0
votes
0answers
10 views

View output from script running in background

While messing around with some Ruby programming (Using OS X 10.9.x), i have constructed a script which is forked to the background, and constitutes a loop which only exits after another process is ...
0
votes
1answer
27 views

Applescript - Get information from terminal command

I'm creating a little script to allow quick changes to the network settings of my Mac. I have got it all working, but I wanted to be able to see what the settings are before I change them in the first ...
1
vote
0answers
21 views

In bash script, how to have a script that runs in the background and starts when an application is opened

I'm making a script which should run when I open Safari. I want it to open when the user logs in and run in the background, then have part of the script to run when Safari opens. Is this possible in ...