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

10
votes
9answers
471 views

Can I shorten the typing needed to `cd` into some well know directories

I find myself opening a terminal and then CD'ing a lot into the same directory the path of which is very long. This means I am cd'ing a lot and using the tab to speed things up a lot. IT would be ...
3
votes
2answers
195 views

Re-reading your .bash_profile

When you make a change to your .bash_profile it will be read the next time you open a terminal. But what if you have a terminal open already. Is there anyway to do a re-read?
2
votes
1answer
3k views

ls command: What does the @ in file mode mean, and how to get rid of it?

After I download files on OSX and then want to use them, they often have an @ appended on the file mode whenever I do a ls -l. Here is an example output, see the @ near the beginning of the line: ls ...
0
votes
2answers
1k views

netstat: n: unknown or uninstrumented protocol

I always use netstat on ubuntu to check which processes are listening on specific ports. I use the following switches with netstat that work fine on ubuntu but on mac fail: sudo netstat -tulpn ...
1
vote
2answers
4k views

How to get Apple Command Line Developer Tools without App Store?

I got a mid-2013 MacBook Air for UNIX development. I'm disappointed that it came with no C/C++ compilers and with no make, which are apparently part of Apple Command Line Developer Tools, which is ...
1
vote
1answer
445 views

Copy and Paste files into the same directory using Terminal

I am currently trying to figure out how to Copy and Paste files (more than one file) into the same directory using Terminal. I am trying to create a script to create the same file. If there is a ...
0
votes
1answer
3k views

How, if possible, can you chat using talk or write in the app Terminal?

I have heard you can send messages to other users in Terminal with the command "talk" or "write". If you can in fact do this, how?
3
votes
2answers
425 views

What is the default speaking rate for the speech synthesis program?

I've been looking all over the internet, but I can't seem to find out the default speaking rate for the in-built speech synthesis program on Mac OS. say "What to say" -r <rate> As shown above ...
0
votes
1answer
194 views

How can I make OS X's bash expand $PWD to be case sensitive?

I am running OS X 10.8 on a MBP 2011. I use some bash-scripts for tasks like backups of remote servers. One of the scripts contains this snippet: #!/bin/bash if [ "$PWD" != ...
0
votes
2answers
544 views

Navigate to a certain tab and close that tab in OSX Terminal

I've got multiple terminal tabs open, and I want to be able to close the current tab. How can I make the current terminal tab be the active tab, so that I can close that tab with ⌘+w? I am in the ...
-1
votes
2answers
635 views

vi shortcuts on bash on mac not working e.g. CTRL + E, CTRL + A [duplicate]

I have used vi as my main text editor for years now on Linux (and a few years back Mac too) and on my brand new Mac (running 10.8.4) I find when trying to edit a file using vi in Terminal I can not ...
0
votes
1answer
1k views

restarting a airport from the commandline - of a non-mac

We have a few airport's and an airport express here at my work, and I would like to bring them into my Nagios monitoring more closely. Right now they are only being monitored by ping. I would very ...
1
vote
1answer
37 views

Terminal Errors When Using 'defaults'

I am trying to use defaults write com.apple.Finder AppleShowAllFiles YES in my terminal but when I do I get the following error: -bash: defaults: command not found Any ideas as to what ...
1
vote
1answer
2k views

Playing alert sounds from terminal

Is there a way to play OSX alert sounds from terminal? The alert sounds that are listed in System Preferences > Sound > Sound Effect Tab
2
votes
3answers
170 views

How can I enable syntax colouring in vim using Terminal?

I am new to mac I want to change the look of my Terminal.app window so that it look like Ubuntu's terminal How can I configure my Mac terminal so that code in vim look colourful? I.e. such that ...
0
votes
1answer
69 views

error building phpsh from terminal

I am following the instructions on the phpsh github page I navigate to the phpsh directory and run python setup.py build and I get this error Traceback (most recent call last): File "setup.py", ...
3
votes
2answers
2k views

Uninstalled zsh, terminal gone weird

I uninstalled zsh pretty soon after I installed it as I realised I had got used to the normal Terminal. The uninstall went successfully and I restarted Terminal, but now it displays my computer-name ...
3
votes
1answer
423 views

Spotlight won't find apps after AppStore updates them

This started happening with Type2Phone, an app from Houdah Software. Every time after I would update the app via the AppStore, Spotlight would no longer find the app (I use Spotlight for app ...
0
votes
1answer
198 views

Can't ssh into my Mac at home, from office [closed]

I'm trying to ssh/sftp to my Mac at home, from office. I can ping it fine. I'm pretty sure I set up keys correctly with ssh-keygen Here's what I'm getting (private info masked with •••): ...
1
vote
2answers
121 views

Terminal path bar style for prompt

I recently saw this in a demonstration online in someones Terminal: Notice the path-bar-like style of the prompt, any ideas how you can get that? Some kind of customisation I'd assume?
1
vote
1answer
49 views

Access Saved Searches Command Line

I have setup a bunch of saved searched via spotlight. Is there a way that I can access them from command line? Ideally I'd like to do an "ls -l [my search name]" but that doesn't really work.
0
votes
2answers
355 views

Visually distinguish different lines (for long wrapped lines) in iTerm2 / Terminal

I'm using an application that outputs very long lines. It's fine - it means things aren't cut off at 80 characters - but the default Terminal and iTerm2 config makes it hard to distinguish between: ...
5
votes
1answer
197 views

Launching certain programs on startup in their own fullscreen space

When I login I want a blank desktop in my first space, sublime text in my second space, chrome in my third, and terminal in my fourth space like so:
1
vote
1answer
216 views

Export or list system settings that deviate from defaults

I am looking to generate something similar to this osx settings script. I'm not having any luck finding ways to perform a diff between system defaults and my customized settings. Anyone know of a ...
2
votes
1answer
2k views

Meaning of “./” in Mac terminal

I am a new user of the Mac terminal. What is the meaning of "./"? What is the difference between the commands rm image.png rm ./image.png rm *./image.png
2
votes
2answers
12k 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 ...
0
votes
0answers
191 views

Why am I getting these errors when trying to install php 5.5.0?

So I am trying to upgrade the native php installation on my mac and i keep getting these errors: ld: library not found for -ljpeg clang: error: linker command failed with exit code 1 (use -v to see ...
0
votes
1answer
1k views

Changing the command prompt of Terminal

I have found myself to grow fond to CentOS's command prompt which looks like the following: [user@host directory]$ cmd I, personally, do not like how Mac OS X Terminal is laid out, which is: ...
-1
votes
2answers
1k views

Terminal script for compare and delete unused Library folder and files

I am cleaning up my Library from junk on an MacBook Air (MacOS 10.8.4). Over time I have downloaded, installed and deleted Applications (they are no longer in my Applications folder). However, lots ...
7
votes
2answers
17k views

Wake Other Computers from Mac OSX

Is there a terminal command within Mac OSX that will allow me to use WOL (Wake On LAN) to wake up other computers? Windows has wolcmd, is there an equivalent within OSX? I am trying to wake a ...
0
votes
1answer
705 views

terminal app on my iphone 5?

Which app do i use to get terminal on my iphone 5? I got something that i thought was terminal, but im not sure. I want to modify my iphone using terminal. I downloaded serverauditor already. Please ...
0
votes
1answer
274 views

How to auto run a simple python program when the terminal opens

Say I have a python program called foo.py that prints a line of text. How can I auto run that program when I boot up the terminal? I know you can, but I can't find the documentation. Also no third ...
1
vote
1answer
128 views

Problems with resizing terminal

I have a recurring problem with the Mac terminal. Start terminal mysql Ctrl + Z mysql Resize the width of the window Ctrl + Z fg 1 (switch back to first mysql) Type some text that reaches the end of ...
-1
votes
1answer
498 views

lpinfo -m -h 127.0.0.1:631 to verfy the printer drivers available on the system

Can someone do me favor and run the lpinfo -m -h 127.0.0.1:631 that will show the listing of all printer drivers installed on your computer. Please tell me if you see more HP printers than ...
3
votes
2answers
2k views

How do cope with a space when setting the $PATH

I want to add the sublime lib to my path but it has a space in it. I have tried the obvious like you would navigate in the terminal E.g /Applications/Sublime\ Text\ 2.app/Contents export ...
2
votes
1answer
260 views

Legitimate user or hacker -Terminal?

I have recently used the terminal and entered the command sudo -s and then dscl . -list /users so I could see all accounts/users who have access to my mac. How do I know which names are supposed to ...
2
votes
2answers
2k views

How to copy all files with extension/filetype in terminal?

I want to copy all files in ~/Desktop with the extension .jpeg to my flash drive. How can I do this in the terminal?
1
vote
1answer
62 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
1answer
159 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 ...
4
votes
3answers
724 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
2k 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 ...
1
vote
1answer
2k 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
40 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 ...
3
votes
3answers
811 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 ...
4
votes
2answers
2k views

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 ...
1
vote
1answer
638 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. ...
4
votes
2answers
18k 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
185 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, ...
8
votes
6answers
694 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 ...
4
votes
2answers
4k 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 ...