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
1answer
13 views

Using the builtin dialog under OSX to unlock an SSH key

OSX has a builtin passphrase dialog for ssh-agent, so that on the first use of a key, it'll get cached. The problem is -- I can't find a way to spawn that dialog by just adding ssh-add. ssh-add will ...
0
votes
0answers
6 views

(Re)Setting defaults preference on OSX for one folder excluding subfolders

i am trying to understand the "overall" file metadata vs preference default settings -logic with osx mav on my mac... after all i am totaly confused The issue: I set up my default com.apple.. to ...
0
votes
1answer
12 views

Where does iTerm store user preferences?

Where exactly is iTerm's user preferences file located? What I want is to sync this file over Github between several machines.
0
votes
3answers
51 views

“Command not found” when attempting to cd in Terminal

I am getting errors trying to set up web starter kit via Terminal. I get an error trying to install the kit: $ cd web-starter-kit $ npm install returns -bash: $: command not found. How do I get this ...
0
votes
1answer
13 views

How to edit /etc/profile using emacs?

I am using Emacs 24.3 on Mac OS X 10.9.4 and I am trying to edit /etc/profile with that. It obviously does not work when starting the GUI version, but for some reason, it also does not work when ...
0
votes
0answers
13 views

Why does suspending vim destroy my terminal?

I use vim in Terminal.app and when I suspend it (ctrl+z) the terminal seems to be "destroyed". Can someone explain to me whats going on and how I can prevent this?
1
vote
1answer
27 views

Can connect over SSH from Mac to linux

I have an Xubuntu server set up with SSH. I can connect to it using Putty on Windows and via a Chrome SSH plugin on my Mac. However, when I use terminal client it just hangs for a bit and then I get a ...
0
votes
2answers
27 views

I want to show a file in an AppleScript bundle, but shell returns: file not found

My Bundle File: reference.txt My Code: set bashFile to path to resource "reference.txt" set the reference_data to do shell script "type " & quoted form of (POSIX path of bashFile) display ...
2
votes
1answer
28 views

Copying only files without a special string in filename

I have to copy only files from a folder that don't have following string in its filename: NNNNxNNNN (a 3 or 4 digit number followed by the character x followed by a 3 or 4 digit number again -> it's ...
0
votes
1answer
11 views

How to prevent Terminal.app from displaying a tab bar when there is only one tab open

The image below is the header that appears when I open Terminal.app. As you can see, only one tab is open, but a tab bar still shows (just has one tab that says "bash"). How can I prevent the tab ...
0
votes
1answer
17 views

Set Alias for Terminal Window in Applescript

After opening multiple terminal windows and running commands in them, it becomes difficult to send another command to a specific terminal window. How can we set an alias for each terminal window so ...
0
votes
1answer
40 views

Problems With Terminal (/usr/bin)

I'm experimenting around with my computer and I realized that all the commands in the terminal that aren't bash builtins were stored in the /usr/bin. So I wanted to see (to confirm my realization) ...
0
votes
0answers
24 views

OSX 10.9: GCC standalone (non-admin)

I have a Mac Mini at home, with my own administrator account. My school provides MacBook Airs. I have XCode installed on the Mini, but I only use the command line extensions-- GCC, G++, etc. I don't ...
0
votes
1answer
14 views

Applescript System Events Keystroke broken after 10.9.4

It seems like the recent Mavericks update has broken the keystroke command in applescript -- whenever my script reaches that point, it freezes. (I currently have ~20 zombie osascript processes...) ...
0
votes
1answer
22 views

I get errors when trying to install GTK+3 on my Mac OSX 10.9 system

I'm trying to install GTK+3 on my Mac OSX 10.9 system to run a pyGObject project I've been developing in Ubuntu. It runs perfectly on Ubuntu, so I wanted to test cross-platform compatibility. I'm ...
0
votes
1answer
27 views

What does update_terminal_cwd do in the terminal of OS X

I am puzzled by it for quite some while now. In $PROMPT_COMMAND of the bash in OS X, there is a command called update_terminal_cwd. I am sure it's not a bash built in, and most likely only exists in ...
0
votes
1answer
20 views

Creating a script that will execute a program and if it exits without crashing, will run it again

I've already asked this question in the UNIx exchange but I was told to ask here also about AppleScripts if the standard shell does not work. I require a script that will open an application. Wait ...
0
votes
1answer
35 views

How to get rid of emoji (emoticons) in Terminal.app (OS X 10.9)

I am experimenting with Twitter API. I now have emoji characters in Terminal.app. I don't know how to handle that. How to get rid of that or use it well? see screenshot
0
votes
1answer
23 views

How to download images from an xml feed using terminal?

How can I download png images from an xml feed that looks the following way? <ListBucketResult xmlns="http://url1.com"> <Name>imagesToUse</Name> <Prefix/> <Marker/> ...
0
votes
1answer
27 views

Command line tools to replace bytes in a file

I need to write a script that patches a few bytes at a particular offset in a binary file. I know of textual tools for this task (sed, though I find it utterly hard to use) but can't find one for ...
0
votes
1answer
29 views

How to iterate through multiple file extension without caring about case sensitivity?

I've seen various topics on how to iterate through multiple file extensions, but in most cases the list is defined. example: for file in ${arg}/**/*.{txt,h,py} do .... done As can be seen, ...
3
votes
1answer
58 views

How does Sublime open file with cmd+click on its path in Terminal?

For example: $ ls -lsa 4 -rw-r--r-- 1 denis 404 Jul 16 18:36 pgadmin.log cmd+click on pgadmin.log Sublime opens pgadmin.log (if path is 'pgadmin.log:12', it opens it and sets cursor to 12th ...
0
votes
1answer
20 views

Applescript Command as Specified User to Delete All Files in a Particular Folder

I am looking at using the POSIX path to delete the contents of a particular folder on users computers but it must be performed as a particular user. I can deploy the script silently from my side ...
1
vote
0answers
35 views

Replacing iphone interface with terminal

Is there an app in cydia or just anyway to replace the normal interface(having to tap icons in order to open) with a terminal. Im using mobileterminal but its just an app. Im looking to replace it all ...
0
votes
1answer
19 views

Bulk conditional file name change

I've been doing a lot of organising of my files using terminal commands (mostly for further terminal education). I've learned about bulk renaming in terminal, e.g. replacing all underscores with ...
1
vote
1answer
54 views

open multiple files in one emacs window

I can open a file in emacs with this command: open -a Emacs main.cpp But when I apply the same command to multiple files open -a Emacs main.cpp test.cpp two emacs windows will appear. I would ...
0
votes
1answer
21 views

Fix Terminal error message “-bash: /etc/profile.d/rvm.sh: No such file or directory”

I am trying to remove the following Terminal error message: -bash: /etc/profile.d/rvm.sh: No such file or directory I recently uninstalled RVM (Ruby Version Manager) from my MacBook Air. The ...
1
vote
0answers
31 views

Executing 'killall Finder' in Terminal raises reopening windows popup

I open Terminal, type killall Finder, press enter to execute, then Finder icon bounces and the well known error popup appears: The last time you opened Finder, it unexpectedly quit while reopening ...
0
votes
0answers
30 views

Unable to use ssh to log into any linux server

Use /usr/bin/ssh -v SERVER to login, here is the output: OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011 debug1: Reading configuration data /Users/hong/.ssh/config debug1: /Users/hong/.ssh/config line 1: ...
0
votes
1answer
14 views

How to use latex2rtf without root installation

This is a very basic question, as I am a newbie on Unix systems. I have installed latex2rtf following the OS X specific instructions. As I do not have root rights (university computer), I installed ...
0
votes
1answer
16 views

How to use automator to create a service which converts an ebook (using calibre commands)

I am trying to figure out a way to be able to right-click on an .epub file and convert it to a .mobi file. Currently (thanks to calibre command tools) I can to the following within the terminal ...
-1
votes
0answers
32 views

How do you delete songs from an iPhone which are not playing more?

I have an iPhone 4 running iOS 7.1.2. I wanted to add new songs, but after syncing all my songs they are not playing anymore but are on the phone. Also these songs are not showing in iTunes and I ...
1
vote
1answer
40 views

Error: “The operation can’t be completed because one or more required items can’t be found. (Error code -43)”

I accidentally pulled an NTFS hard drive out of my Mac OSX Mavericks machine several times and realized that I accidentally created multiple entries of many different names in my /Volumes/ folder. Now ...
1
vote
0answers
15 views

How to prevent TextEdit from commandline to cause Developer Unknown warning?

Is there any way (other than disabling Gatekeeper through preferences) to allow TextEdit to open my shell-script from a command-line? I'm more than ok with a dialog warning me, but the current dialog ...
0
votes
0answers
29 views

How to Access Shared Computer Through Terminal?

I have Mavericks on my Mac and wish to set up Unison between it and an old PC (vaiolaptop) running Windows XP on my network. How so I specify the path to the remote machine? It appears like so in ...
3
votes
1answer
99 views

How can I define CLASSPATH variable

For a school assignment I need to add a folder to my classpath. It says that I should do this by adding a line to the file .bashrc. However, this file doesn't appear to exist in my computer. I also ...
0
votes
0answers
24 views

DNS Lookup Failure on Terminal Only (Mavericks)

I recently did a clean install of Mavericks, and ever since I have, I've been having intermittent DNS lookup failures on the terminal only. Browsers work fine (Chrome, Safari). But nothing works ...
0
votes
0answers
21 views

Overtype mode in command prompt

As a linux/windblows user, I am used to switching temporarily to Overtype Mode when using the command prompt. As a new user to the mac world, I do not know how to change text input mode from normal ...
1
vote
1answer
20 views

Trying to get Sublime Text 3 working from terminal

I am trying to get the Sublime Text to work with Git from the following tutorials http://www.sublimetext.com/docs/3/osx_command_line.html and ...
1
vote
1answer
18 views

How to automatically tag file by name or extension

I was wondering if there is a way to automatically tag a file as it reaches your computer, like downloads, copying from an external drive, etc. I would like to simulate gmail filters, like labelling ...
1
vote
2answers
1k views

Is there a way to have something similar to Cygwin on Mac?

I'm a web developer using a MacBook Pro running OS X 10.9.3. Before I started developing in a Mac, I used Cygwin on a Windows machine to see what was happening behind the scene on my web application. ...
0
votes
0answers
48 views

Move full screen app to the LEFT of first desktop in 10.9.4?

I am part of the Apple developer program, and received the 10.9.3 beta before the full release. In that version, I could place a full screen app to the LEFT of the first desktop. My setup was to have ...
0
votes
1answer
36 views

How to move IOUSBFamily.kext file in trash back to to System/Library/Extensions using Terminal in recovery mode

Im toying with my Mac. I restarted the system forgeting to return the file, How can i move it back or restore without having to reinstall the OS.
0
votes
1answer
26 views

Why am I unable to set new command prompt for terminal?

Why am I unable to set new command prompt for terminal in OS X Mavericks? I've tried to do the following: export PS1="\u \W$ " It works as expected but after restart the default value of PS1 will ...
0
votes
0answers
19 views

How do I enable an external display in Single User Mode via Terminal on a headless macbook?

I'm trying to troubleshoot video issues on macbook laptop with no display or a dead? display but can't see what I'm doing. I need a Terminal command to run 'blind' after I boot into Single User mode ...
0
votes
1answer
28 views

How do I get system_profiler output from a lot of machines in a network?

I need to have a script that will execute "system_profiler -detailLevel full" command in a remote mac machine. While this is going on, the user on the remote machine should not know that there is ...
3
votes
2answers
34 views

Using Alt/Cmd + Right/Left Arrow in iTerm

Is it possible to move between words in iTerm using Alt + Right/Left Arrows ? Now if I press Alt+Left I will get '[D' and '[C' if I press Alt+Right.
0
votes
1answer
15 views

How to get the content of a Resource Fork?

I want to get the stored resource fork. In PHP, I'm trying to: system('DeRez' . $_icon . ' | perl -ne \'m|/\* (.*) \*/| && print $1; END {print "\n"}\', $content); which in Terminal really ...
0
votes
1answer
54 views

Terminal malfunction when running some executables

Short version I overwrote /bin/sh with something else and now I am having issues with terminal. How/can I restore/reinstall /bin/sh? Long version I think I did something silly. I was searching help ...
1
vote
1answer
39 views

'localhost' stoped working as an alias for '127.0.0.1' for SSHing into my VirtualBox VM. Why, and how to fix?

The question explains the problem. For months I've never had any problems along these lines. Then, yesterday morning, I couldn't get into my VM! Took a long time to troubleshoot but here was the ...