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
77 views

How to automount SSHFS volumes with FUSE OS X on Mavericks

Iv'e managed to get my ssh volumes mounted with SSHFS via the command line but would really like is to have them auto mount on login. So far, I've set up a launchAgent to run a shell script that ...
2
votes
2answers
159 views

make it easier to call often used terminal commands

I have a java tool that I use quite often from the command line but to use it I have to type java -jar dsim.jar. I want to make it so that I can call it just by typing dsim regardless of what ...
4
votes
2answers
7k views

Using The Terminal Command to Shutdown, Restart and Sleep My Mac?

I'm getting more interested in using Terminal as an alternative way to address solutions on my Mac. I have seen this question entitled "Is there a better way to shutdown/restart OSX?". I would ...
1
vote
1answer
42 views

How can I use an app after installing it via `brew pull`?

Because of a reinstall of the OS and a not perfectly migration of my data I had to reinstall a few things. Under these things were homebrew and truecrypt. brew doctor doesn't show any problems now. ...
0
votes
1answer
23 views

How can I stop the shell command `mate` from opening Textmate 1.x instead of Textmate2?

I've installed mate in the preferences pane in TextMate2. It says "Shell support installed." I added the string export EDITOR="/usr/local/bin/mate -w" to ~/.bashrc as instructed. However, when I use ...
0
votes
1answer
29 views

How do I get osascript to parse backslashes and run this command in a new Terminal window?

Here's a command that works fine when I paste it into the Mac Terminal window: echo -n -e \\033]0\;My Custom Window Title Here\\007 ; ping www.google.com In particular, it sets the Terminal's title ...
0
votes
1answer
528 views

How do I re enable a permanently disabled Notification Center in Mavericks?

I disabled my notification center but i want to re enable it again i followed this link "How do I permanently disable Notification Center in Mavericks?"
4
votes
4answers
9k views

How can I save SSH Bookmarks in Terminal?

I've recently become infatuated with TotalTerminal and am tempted to switch from iTerm back to Terminal just so I can use it, except that I rely heavily on a half dozen SSH bookmarks in iTerm. Is ...
1
vote
3answers
35 views

Run app as a different user (automator) [duplicate]

i'd like to be able to open an app as a different user. For example PC1 is my main account and PC7 is my secondary one. I can achieve the effect in terminal using su - pc7 insert password ...
1
vote
2answers
5k views

How to fix curl throwing “error setting certificate verify locations”

I'm a web developer and I have a MacBook4,1 with OS X 10.5.8. Important stuff like GitHub, homebrew, ruby and python doesn't work correctly, because curl doesn't work. It seems that the SSL ...
1
vote
1answer
39 views

Why is 'xattr' not working?

When I attempt to execute xattr in Terminal, I get Traceback (most recent call last): File "/usr/bin/xattr-2.7", line 33, in <module> import xattr ImportError: No module named xattr ...
0
votes
1answer
48 views

how to use terminal to remove item from dock

Hi I have a shell script in my login item , which runs whenever i log in to my system . It does work completely but once it exits the terminal , it leaves the terminal shortcut on my dock and I don't ...
2
votes
1answer
46 views

How can I `brew prune` multiple entries?

After many calls with the Apple support, they told me I should reinstall the OS and restore my stuff with the migration assistant. I did it and almost everything works fine so far. Only brew doctor ...
0
votes
1answer
49 views

close all the instances of google chrome except first

I can close google chrome with following bash command: kill -9 $(ps -x | grep "Google Chrome" | awk "{print $1}") It closes all instances of google chrome. But I need command that close all the ...
1
vote
0answers
15 views

openAL Terminal ends with Error: Couldn't open input file (-43)

I've followed the tutorial of openAL sound on the iPhone. While trying to make input file, I'm getting the error which looks like Error: Couldn't open input file (-43) Here is what I've done so ...
17
votes
9answers
7k views

How can I sleep the display from Terminal?

I'd like to be able to turn my screen off from command line. I know there's the keyboard shortcut ctrl+⇧+⏏ but I want to do it from a shell script or remotely. Is there a way?
3
votes
6answers
726 views

Avg load goes up after upgrading to Mavericks

Just upgraded to OSX 10.9 Mavericks. Everything is good and shiny. However, when I open my iTerm to code, I notice that the performance is lower. If I run a uptime command, the average loading is ...
2
votes
3answers
105 views

How to stop being logged out of SSH sessions when locking the screen in OS X 10.9.1?

Every time I lock my screen I get logged out of any active SSH sessions. I've added the following to my ~/.ssh/config file, but I still get logged out: Host * ServerAliveInterval 60 How can I ...
1
vote
1answer
15 views

Droplet Applescript Touch

i was trying the last days to get a droplet working, which is changing the time stamp of every dropped .jpg / .tif / .dsc / .cr2 to the actual time or even a few secs earlier in Terminal. Would ...
14
votes
4answers
4k 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 ...
2
votes
0answers
115 views

enabling/disabling internet sharing with terminal in mac osx 10.9.2

Very much on the line of already existing questions, but not having enough reputation to comment by following existing threads, I can only ask my own, at the risk of duplicating may be, certainly ...
0
votes
1answer
36 views

Ping all the ip range of a local network

It is possible to reproduce the task via terminal as Angry IP Scanner does, i.e. scan all the subnet?
0
votes
0answers
16 views

Printing to a Windows printer from the command line (smbclient -c “print”)

I am trying to print to a Windows printer server requiring authentication from the command line. An option is to use kinit to get a Kerberos ticket (and it works). On a Linux machine I also managed ...
1
vote
1answer
18 views

Equivalent of Ubuntu’s write-mime-multipart?

I would like to generate a multipart mime-encoded document for use as user data on EC2 instances. On Ubuntu, one is supposed to use write-mime-multipart to do this, as per these instructions. Does ...
12
votes
3answers
7k views

Where will the incident with the sudo command be reported to?

If a non-admin types a sudo command in Terminal, this will appear after they enter their password: User is not in the sudoers file. This incident will be reported. Where is this reported to?
0
votes
2answers
915 views

Mount Shared Drive via AFP in Terminal

I want to mount an external drive, connected on computer A, to computer B. I am able to access and mount the drive by connecting to the server through Finder (Command-K), but how can I do this exact ...
0
votes
1answer
83 views

Writing to NSUserDictionaryReplacementItems with defaults

The following command reads the NSUserDictionaryReplacementItems. The keys are called Text Shortcuts in OS X. defaults read NSGlobalDomain NSUserDictionaryReplacementItems I want to create new ...
10
votes
4answers
8k views

How to set system-wide environment variables on OS X Mavericks

We used to use /etc/environment to set system-wide environment variables on Mountain Lion. However, it seems this file is no longer read. Ideally the solution should apply to all users, and we need ...
2
votes
2answers
29 views

set custom file extension to open with specified program

I want to have all files with an extension of .fw.png to open in Fireworks (not necessarily .png files though). Is there a way to do this in Terminal?
14
votes
12answers
4k views

What orthodox file manager for OS X could I use?

I'm looking for a graphical file manager fro OS X, for console Midnight Commander is ok. I need two panels, function keys operations and preferably FTP and SCP support. Also, it would be great to be ...
2
votes
2answers
194 views

Legendary sudo rm -rf /

Just curious, what happens in OS X Maverick if someone issues sudo rm -rf /? I heard most modern *nix systems are protected from this epic fail.
1
vote
1answer
570 views

“Missing Quartz Composition” displayed on TotalTerminal

I started using TotalTermianl on Mountain Lion. But the background have Missing Quartz Composition error. I have found some people had the same as mine here Do anyone know how to fix it??
1
vote
1answer
118 views

Mavericks - VPN command line

I see a lot of third party apps that offer the ability to turn your Mac into a VPN server. It seems the VPN server functionality is built into OS X from what I've read but you need OS X server to get ...
0
votes
2answers
112 views

Is there an equivalent utility to Linux's tracepath for OS X?

I'm attempting to determine the path MTU from my Mac to various sites, and can't find a built-in utility to accomplish this. In Linux, I would use a utility like tracepath, but I"m wondering if there ...
6
votes
2answers
5k views

Reset your PATH variable

I stuffed up (basically wiped) my PATH variable. Is there any way to reset it to the default? I look at How do I reset the $PATH variable on Mac OS X?, but I find it very confusing. As far as I ...
3
votes
1answer
44 views

Terminal not displaying colors for directory listings

I don't know why my bash session doesn't show colors. I have tried Terminal as well as iTerm. I have tried: ls -G Setting export CLICOLOR=1 and export LSCOLORS=GxFxCxDxBxegedabagaced Using ...
1
vote
1answer
47 views

odd behavior of pgrep in bash script

I have a script to kill a process tree that works fine in linux but I am experiencing some odd behaviour on osx. It actually works fine with my unit tests and also when trying to run it manually on ...
3
votes
1answer
525 views

\Trace/BPT trap: 5 when using open from terminal

After upgrading to Maverick, I can't use the open command anymore from the terminal. Whenever I do, I get: $ open http://google.de Trace/BPT trap: 5 This is independent on the document chosen. $ ...
15
votes
6answers
6k views

Can home and end keys be mapped when using Terminal?

The home and end keys on a MacBook Pro can be emulated with fn + left arrow or fn + right arrow. Or when certain settings are changed, with the Command (Apple) key instead of fn. None of these ...
1
vote
2answers
535 views

What is the Mac equivalent of Windows “start” command?

I'm creating a script that runs several other scripts. I need them to all start up in their own process (read window) so I can review the output of each, but I also need them to run in parallel, so ...
2
votes
0answers
93 views

Uninstalling Genieo broke my system

Update below, the rest is more or less background information. After discovering a Genieo install, I vaguely recalled it being, well, not trustworthy. After a quick search I knew I wanted to ...
2
votes
0answers
55 views

Command+Tab misbehaving for apps on multiple monitors

I tend to keep a few Terminal windows open in one monitor, and another Terminal window and Chrome open in another monitor. When I'm using a single monitor, pressing ⌘⇥ remembers which Terminal window ...
1
vote
1answer
11 views

Reset custom Mail UserHeaders settings in Terminal

How do I reset the following command? defaults write com.apple.mail UserHeaders '{"Reply-To" = "reply-to@address"; }' I had to use this workaround for a problem with the hosting provider that used ...
2
votes
1answer
36 views

Modifying .plist with shell changes .plist order

I wrote a simple shell command and saved it as .command. The shell command is simply: defaults write /Users/Milo/Desktop/MyPlist "My Key" "My Entry". The issue that I'm having is that after running ...
5
votes
4answers
1k views

Automatically quit Terminal when typing exit

Scenario I use terminal to SSH a lot, however would like the Terminal App to quit when the last Tab closes using exit. I already have the terminal window itself set to close on successful exit, ...
0
votes
1answer
21 views

What files do I edit to be able to maximize Finder windows to fill the screen by shift-clicking the green button?

Is there a group of files or a single file I can edit to facilitate maximizing "Finder" windows to fill the entire screen just as other application windows by shift-clicking the green plus button?
0
votes
0answers
162 views

hdiutil returns error when creating Ubuntu USB stick

I am following an online tutorial for creating an Ubuntu USB stick on OSX but I'm stuck in step 3: Convert the .iso file to .img using the convert option of hdiutil (e.g. hdiutil convert -format ...
2
votes
1answer
32 views

String of variable has a space - how do I escape spaces?

I'm working on an applescript that pulls old Time Machine backups and places them into a new folder. But if the old computer name has a space in it, that causes an issue in the do shell script ...
1
vote
1answer
61 views

Vim like terminal

I recently discovered terminal's feature, you can set the keys emacs or vi style I prefer the second. so if you do set -o vi You can use k j l h keys to navigate on the command line. And you can ...
1
vote
1answer
50 views

File tree list Mac Terminal

I am trying to create a .txt file that is the output of a certain function in the terminal. So my function is to create a list of all the files that i have inside the folder TEST so what i typed was: ...