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

com.user.loginscript[ ]): Exited with code: 1

Whenever we restart our server it changes our DNS and apache settings. I haven't been able to figure out why, so I wrote a quick script to restore these to safe settings on login to fix Mac OS X ...
2
votes
1answer
69 views

Hard Drive Formatting Error in Terminal

I have tried formatting and partitioning this brand new hard drive and it has failed on multiple computers using multiple methods. It is a LaCie Porsche Design 4TB hard drive. Here is the commands I ...
1
vote
0answers
49 views

XQuartz is not starting from within tmux

I'm using the standard apple terminal with zsh as my default shell. In my ~/.zprofile (equivalent of .profile) I have the following line: [[ $TERM != "screen" ]] && exec tmux This ...
0
votes
1answer
38 views

user-name@dest-host for MACbookpro

I have a directory at a unix machine which I want to copy to my macbook. I login to unix machine using a VPN connection and then try to copy the directory using the following standard command scp ...
6
votes
3answers
200 views

Is there a way to make the terminal's font less blurry?

I have been using a MacBook Pro for about a year or so, and I can definitely say that I am really satisfied from it. But there is one little thing that annoys me about it: the fonts in many text ...
0
votes
1answer
107 views

Is it OK to run -sudo purge, frequently? [duplicate]

I'm on Mavericks 10.9.2, 24GB's RAM, and my usage constantly teters on 23.95 GB in use very frequently. From what I can tell, the largest running process is 'kernel_task', and even then it's less ...
2
votes
3answers
126 views

Bash: Return the most recently edited file in a specified directory

For a bash script I am currently developing I want to access the name of the most recently edited file (including folders but not subdirectories) in a specified directory. How do I do this?
4
votes
2answers
137 views

Correcting Pronunciation Errors in 'Say' Command in Terminal

I'm having difficulty correcting the pronunciation in the 'say' command, using 10.9. I tried to add new pronunciations through: System Preferences > Dictation and Speech > Open Accessibility ...
4
votes
1answer
46 views

Graphical man pages viewer in Terminal.app

There is a feature in terminal to view man-page of selected string in external window with ⌃⌘? shortcut. But it has a priority to display preinstalled man pages. So for example I've installed gnu ...
3
votes
2answers
365 views

Is it possible to hide files from Terminal's ls?

I am saving some files because I need to reinstall OS X, and noticed oddly high numbers of files in some folders. Is it possible for malware to hide files from ls?
0
votes
1answer
35 views

networksetup -disconnectpppoeservice not working

I love doing stuff on terminal, a lot. Thats how I found this command to connect to my PPP service: $ networksetup -connectpppoeservice HUAWEIMobile- And its works successfully to connect my PPP ...
1
vote
0answers
19 views

Clever way to create image of entire terminal log?

I would like a way to execute one command, to take a "screenshot" of the entire terminal log (including lines of text that are not visible without scrolling) Possibly an application that has this ...
1
vote
1answer
50 views

Aufs mount alternative

What union mounts are available on OSX? I've been using Aufs on Ubuntu for the past few years without fail and I'm looking for something similar... Basically, given n directories, merge the contents ...
1
vote
1answer
60 views

Running shell commands with Automator: how to create a droplet launching an “exec” command?

I need to create a automator application that launches the following exec command, whenever a image file is dropped onto it (the exec print the image files with some printing params). exec('lpr -o ...
1
vote
1answer
53 views

Using MacPorts bash, tab completion no longer lists hidden / dot files

I used MacPorts to install bash (bash @4.3.8_0). I switched Terminal to use /opt/local/bin/bash as the command to startup. However, now when I type vim ~/.<tab><tab>, it no longer lists ...
2
votes
1answer
74 views

Weird OS X Terminal Bug: Cursor won't go back to end of line after backtracking

I have an interesting problem: when I type something in the terminal as follows: ~ me$ hello<cursor> and backtrack: ~ me$ he<cursor>llo and then try to return to the end to continue ...
1
vote
2answers
614 views

Alfred: How to get Alfred to run a terminal command?

I often need to run multiple copies of an app, like VLC. For this I use the terminal and run a command similar to: open -n /Applications/VLC.app How can I create a shortcut with Alfred to run this ...
3
votes
2answers
255 views

How to run a cron job each time the previous execution has finished?

I would like to run a Python script each time it finishes and I think I can do this with cron but I am not sure how to do it. The idea is each time the Python scripts ends, it will have to run again ...
4
votes
1answer
89 views

Set a custom dock icon for an application instance via Terminal

I'm frequently opening multiple instances of applications, especially Emacs, since I may be working on different projects on the same time, and I find this the best way to manage this (yes, I know ...
0
votes
1answer
104 views

Automator Workflow - Convert FLAC to MP3

I would like to have an Automator Workflow that converts FLAC to Mp3. Right now I am using this shell script which works fine and preserves ID3 Tags: #!/bin/bash for f in "$@"; do [[ "$f" != ...
3
votes
4answers
661 views

Run sudo From Non-Admin Account

Okay, so I'm gearing up to get a new machine so I'm looking at how I can organise things better. Now, currently I use an admin account as my main login account, but I know that that's probably not ...
1
vote
1answer
20 views

grep doesn't give the correct offset?

Trying to get the bytes offset of a text word in a binary file (with some text here and there). I need to know the offset of this word from the beginning of the file. I'm wondering if on osx the ...
1
vote
1answer
165 views

In Terminal, where it displays XXX@YYY , what is XXX and what is YYY?

I transferred a backup to a new mac. However the names got changed, and one has a -2 added to it. Now my terminal reads name@name-2 -$. In Finder it appears like so: `name (2)` `HardDriveName` ...
1
vote
2answers
407 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
175 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 ...
1
vote
1answer
85 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. ...
1
vote
1answer
98 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
47 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 ...
1
vote
3answers
75 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 ...
2
votes
1answer
317 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 ...
1
vote
0answers
58 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 ...
1
vote
1answer
105 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
103 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 ...
3
votes
1answer
522 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
94 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 ...
1
vote
1answer
25 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 ...
0
votes
1answer
45 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
36 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 ...
2
votes
1answer
43 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 ...
2
votes
2answers
53 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?
3
votes
2answers
361 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
2answers
471 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 ...
3
votes
1answer
101 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
2answers
656 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 ...
3
votes
1answer
178 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 ...
1
vote
1answer
29 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
62 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 ...
0
votes
0answers
184 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 ...
0
votes
1answer
27 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?
1
vote
1answer
97 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: ...