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

1
vote
1answer
62 views

Why are the hidden files/directories seen in Terminal color settings?

When I tried to set my Terminal color by importing a color scheme stored in ~/Dropbox/.personal/myColor.Terminal, it didn't display the hidden directories, including ~/Dropbox/.personal (and other ...
1
vote
0answers
24 views

To have inkscape's terminal scripts in terminal like in Linux

I am trying to write this makefile in OSX. I have installed Inkscape but it does not have the script that allows you run commands in terminal like this inkscape $(SOURCE).svg -w $(WIDTH) ...
0
votes
0answers
13 views

Ensure that the user is signed in after a reboot via Terminal.app

In the User settings I have Automatically Sign In as: . However, when I reboot the machine via SSH in the Terminal.app the machine reboots, but does not sign in the specified user and is stuck at the ...
2
votes
1answer
1k views

brew cask: howto uninstall an Application

I tried, while I am in /opt/homebrew-cask/Caskroom $ for i in *; do brew cask uninstall $i; done Error: appcleaner is not installed Error: avidemux is not installed Error: eclipse-ide is not ...
2
votes
1answer
1k views

How to create a VPN connection via terminal?

I have a macbook pro with mavericks running. I am looking for a way to connect to a VPN network in terminal. The reason why I want to do this is that I want to write a small program in Python which ...
0
votes
1answer
77 views

Copying ssh private key with finder, but can't see it with console

Background: I generated an additional ssh key-pair on my windows 7 workplace computer. I placed the corresponding public keys in my bitbucket.org and github.com account. I am using atlassian ...
1
vote
3answers
3k views

How do I undo “export PATH='/usr/local/bin:$PATH' >> ~/.bash_profile”

I was trying to install homebrew, which wasn't working. It told me to do echo export PATH='/usr/local/bin:$PATH' >> ~/.bash_profile. However this wasn't having any affect, and I thought maybe it ...
0
votes
1answer
20 views

Is there a way to turn off LibreOfficeUpdate via terminal?

Good morning everyone. I administrate few MacBook laptops (in remote locations). We control the versions of software that we allow users to use for compatibility issues. But end users nag as to ...
1
vote
1answer
1k views

need to script connection to telnet and send commands to remote device with no user input

Ok I need some help making a script that will connect to a server and send 2 commands Ideally I would have telnet 192.168.2.230 9993 and once it logs in (no user name or password required - the ...
0
votes
0answers
33 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
95 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
1answer
105 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
49 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
462 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
138 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
159 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
174 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
53 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
388 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
51 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
20 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
2answers
90 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
164 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
77 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
95 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 ...
2
votes
2answers
1k 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
343 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
140 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
185 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" != ...
4
votes
4answers
2k 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
23 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
198 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
652 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
184 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
118 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
210 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
70 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
132 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 ...
3
votes
1answer
764 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
100 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
192 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
187 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
845 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
253 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
28 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
57 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?
1
vote
0answers
88 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
63 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
75 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?
4
votes
2answers
684 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.