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

How to keep PS1 changed in terminal?

I'm able to change the terminal prefix with PS1="[\\W]$". However, whenever I restart the terminal or open a new instance, it reverts to the default. How can I make this change permanent? Thanks! ...
1
vote
0answers
17 views

How to export files from hard drive in Snow Leopard CD?

I have a macbook 5,1 that won't startup. I'm going to reinstall Snow Leopard with the CD, but is there a way to export some of the files that are in it? I can't seem to gain access to them through the ...
2
votes
1answer
50 views

terminal command say produces error

The "say" command in OSX Terminal works fine for me and I use it now end then. However, since last week it produces the following error message on my Mac Mini (Late 2012, 10.8.4): $ say test > ...
0
votes
1answer
18 views

Permission denied for symbolic link

I'm creating a symbolic link with the following applescript: on run do shell script "rm /usr/bin/ant" with administrator privileges do shell script "ln -s ...
0
votes
1answer
42 views

Terminal bash commands stopped working

I was trying to install some stuff for scala development on my MAC, and probably I managed broke the shell/terminal while I was mindlessly running some scripts that I don't know. Now when I start the ...
0
votes
1answer
17 views

ssh publickey error

I have a MBP with 10.8.4 and a Mac minis server with 10.8.4. I set sshd to only allow publickey and it worked. But now, I’m now sure why, it doesn’t work anymore. I always get ...
0
votes
2answers
36 views

cal command - start monday

I was wondering - is there a way to make 'cal' (a terminal program) start the week on monday? Usually it can be done with the -m flag, but this does not have any effect on the Mac. AFAIK, for ...
0
votes
0answers
8 views

rmate setup - error message

I want to setup rmate on my server, but I always get this error message and I’m not sure what to tod /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in ...
0
votes
2answers
48 views
+100

changing the meta key in emacs

I am running emacs 24.3 through the terminal on OS X 10.8.4. I would like to modify the meta-key which is currently set to be the ESC key. I have successfully changed the meta-key from ESC to ...
0
votes
1answer
18 views

Selecting files with one extensions that have the same name as files with a different extension

I have two folders of images. In one folder there are .JPGs, e.g. 001.jpg 002.jpg 003.jpg 004.jpg 005.jpg 006.jpg 007.jpg 008.jpg in the other folder, there are .NEFs. ...
3
votes
2answers
179 views

installation stuck in a loop due to damaged HD

Right off the bat I'll admit it was stupid to jump into trying to install a new version of OS X to the only partition without having taken adequate precautions (no backups or recovery disks), but ...
1
vote
1answer
43 views

How do I show all hidden & invisible files on the command line (both .files and invisible flagged files)?

Is there a way to show only the hidden and invisible files in a directory using the command line? For instance ls -a | grep "^\." will show all the files hidden by a period as the first character, ...
6
votes
4answers
269 views

Where can I find a comprehensive and detailed technical software manual for OS X?

Are there books written for OS X (particularly the most current version) like the hundreds of thousands written for Unix? I'd like to know about the command-line utilities and the locations of system ...
3
votes
2answers
44 views

How to strip a filename of special characters?

I have a file with a name such as "Today's Date.txt" What I am interested in is stripping away all special characters using the terminal such as: " - , ' ' [ The reason for this is because I ...
0
votes
1answer
24 views

Understanding install of mod_wsgi on apache terminal commands

I'm installing a django development environment on OSX. Apache is, of course, installed by default. From my (very limited) understanding of Macs, I don't believe there is preconfigured functionality ...
1
vote
2answers
50 views

Changing the $HOME environment variable in terminal on mac 10.8

To be clear im not looking for a workaround that will execute a change directory command on startup. I want to alter the $HOME env var so that tilde commands work and so that entering a 'cd' command ...
0
votes
2answers
39 views

Reinstall bash on MacOS 10.7

I have a MacBook Air where someone attempted to install this version of bash over MacOS's native one unknowingly. I attempted to fix this by removing the files created by the installer (the readme was ...
0
votes
0answers
17 views

Show PDF in TextMate 2 Command Output window

I would like to display the PDF I've generated with a custom build process in the command output window of TextMate2. The LaTeX bundle has an action that calls the appropriate processor and shows the ...
2
votes
1answer
26 views

How to open a Finder window even if one is open on a different space already, in Terminal?

I often use open . to open the current folder from Terminal.app. From time to time this doesn't work. The reason is that the folder in question is already open in some other Finder window on some ...
0
votes
3answers
20 views

terminal search files by text that the file names contain

Let's say there a file called "abc_deh.xyz", what command do i use to find the location of that file in mac terminal by using solely the search term "deh"? So, basically, I am asking how to search for ...
2
votes
1answer
40 views

Can't run vi from terminal

Every time I execute these commands: vi or vim in the terminal, it gives me the following error: -bash: /usr/local/bin/vi: No such file or directory or -bash: /usr/local/bin/vim: No such ...
-1
votes
0answers
14 views

zsh applies a command after each command

i have a zsh shell with oh my zsh installed, and i installed mercurial plugin after configuring my custom oh my zsh theme. the problem is, whatever command i type, hg help command is run afterwards ...
1
vote
1answer
56 views

python site packages directory

I have for some reason two locations for python site packages. Python itself is here: > $ which python > /Library/Frameworks/Python.framework/Versions/2.7/bin/python My Path Variable is: $ ...
0
votes
1answer
35 views

Kill processes automatically that get over x % CPU

I have a (rather annoying) process on my iMac that tends to get out of control. Unfortunately, it's not possible to get rid of it. Much as I want to. This process is fine at first - using 1-2 % of ...
2
votes
3answers
61 views

how do you change mac terminal theme so that it doesn't go back to 'basic' every time you open it

I just can't find any way to change the theme and have it applied permanently. I really need some guidance here, all I want is to change to another darker theme other than the default 'basic' theme, ...
2
votes
1answer
71 views

The safest, most reliable way to move files from drive A to drive B

I am trying to come up with the safest way to move data between two drives, designed to handle the worst possible circumstances. For example: if you were trying to move the only existing copies of ...
0
votes
1answer
119 views

OSX equivalent for ~/bin in Linux

When using Ubuntu I can save shell scripts in ~/bin. To launch them I just type the name of the script in the Terminal. Is there an equivalent solution for OSX?
2
votes
1answer
39 views

OS X Mountain Lion Terminal and tabs take ages to load

When I open a new Terminal tab I have to wait at least 10-20 seconds before I can work with it, I have followed previous suggestions here: How do I speed up new Terminal tab loading time? But so far ...
1
vote
2answers
37 views

drag file from file chooser or get path

Editing a file using text wrangler. Want the path so can pass it to a program in the terminal. Is there an easy way to do this? Don't seem to be able to drag it nor right click and get info. I'm not ...
0
votes
2answers
49 views

Terminal has gone weird after screen sharing

I used screen sharing on my Macbook Pro to remote control my friend's iMac. Unfortunately, now my Terminal now says: kellys-iphone-2:~ James$ Why is it now saying this all of a sudden? Where has ...
0
votes
2answers
34 views

Can I have color ls output automatically if my TERM is “xterm-256color”?

Can I have automatic color output for ls if my TERM environment variable is set to xterm-256color?
1
vote
2answers
39 views

How to prevent Terminal from resizing when font size is changed

10.8.3/Terminal 2.3. Terminal resizes the entire window in seemingly unpredictable ways whenever I change the size of the font -- a frequent operation when frequently going between laptop and ...
0
votes
0answers
20 views

Inkscape will not open on its own, but can be opened from within an x11 window

When I installed inkscape, it asked me for the location of x11, and without thinking, I choose xcode, rather than xQuartz. So now, if I try to open it via its icon in the applications folder nothing ...
1
vote
1answer
29 views

How can I open all the files in all the subdirectories of a folder?

I'm trying to recursively open all the files in a folder, including its directories. I've been playing around with open /path/to/folder/*, and this will open all the files inside that folder but not ...
0
votes
0answers
23 views

Is it possible to check which application has accessed a file last?

I can check when a file was accessed last with ls -lu path/to/file | awk '{print $6,$7,$8}' but can I also see what application accessed it?
2
votes
3answers
246 views

Can I disable Dashboard in Mountain Lion?

I'm wondering if there's a way to disable the dashboard in Mountain Lion. I never use it and I think it's consuming processor and memory powers.
1
vote
1answer
35 views

Making Hidden Apps Appear Faded Whilst Sitting On The Dock?

Sometimes it can be quite difficult for me to tell which of my apps are hidden on the dock and which are not. Is it possible to make those Apps which I have hidden (either by terminal command or ...
1
vote
2answers
18 views

Is there a way to set an Application Shortcut in the Keyboard Preference Pane via Terminal?

I'd like to have a bootstrap for my custom keyboard shortcuts to use on multiple machines...
1
vote
1answer
52 views

preventing ssh command from opening xquartz on every session

Whenever I use ssh, after I type the password, xQuartz pop ups in the dock and terminal window looses focus. This happens even if there's no an X session. Why? How to prevent this behavior?
0
votes
1answer
107 views

Cleaning up my .bash_profile: Can I delete some of this?

I'm not a Unix guru. I'm running OS X 10.8.3 Mountain Lion. Today I removed Macports from my machine. I believe macports left some cruft in my `~/.bash_profile which I would like to remove (the ...
1
vote
3answers
90 views

Change file association in terminal?

Is there a method for associating file types with applications via terminal? I thought ~/Library/Preferences/com.apple.launchservices.plist might do it, and I also have seen: Why is a command line ...
1
vote
1answer
34 views

How to remove an environment variable on Snow Leopard

I'm running under Snow Leopard 10.6.8 and I recently added an environment variable which it seems to be messing my bash terminal (I guess). What I did is add the variable ...
0
votes
0answers
84 views

I am having trouble getting apache to work via terminal on mac os x 10.8.3

I am a beginner with the terminal app. - I think , while following a tutorial for creating a user configuration file for apache, that I messed something up internally with apache. I cannot even access ...
1
vote
2answers
105 views

how to move files in terminal osx

Hello world so i am way new to mac i am trying to install an older version of wkhtmltopdf because the brew install wkhtmltopdf installs a rc version that just wont work. So i found this blog that ...
0
votes
1answer
162 views

How can i reset my Terminal?

just some time ago i installed the OS X Server app on my mac and since this day it always appears server as the chosen directory in my terminal. But because i dont really like the Server application ...
0
votes
0answers
28 views

Making checks before rsyncing external drive on OSX

I have the following issue on OSX though I guess this could equally be filed under bash. I have several encrypted portable drives that I use to sync an offsite data store or as an on-the-go data store ...
0
votes
1answer
39 views

How do I make a bash script so that I can drag its input on top of the icon?

I need to make a bash script to that I can drag a .rar file on top of it and then the script will receive the pathname of that file as argument 1 ($1). I have made the bash script, but how do I make ...
0
votes
2answers
51 views

How to build a simple app that turns text to m4a files

I'm learning Chinese and want a way to quickly generate and save words and phrases to m4a files. I've managed to do pretty much what I want in terminal, but I can't seem to figure out how to make an ...
1
vote
0answers
30 views

Terminal configuration lost after booting up

On OS X 10.8.3, my Terminal.app is configured with my .bashrc file. In my .bash_profile I have: source .bashrc It works great, except when I let some Terminal windows opened and shut down the Mac. ...
2
votes
2answers
92 views

Is it possible to get the full suite of unix options for the command line tools on OS X?

I follow Unix Tool Tip on Twitter and it is interesting that many of the tips that are posted are not available on OS X. For example: cp - u will only copy files that don't exist, or are newer ...

1 2 3 4 5 18