questions narrowly about terminal.app alone should use this tag. Please consider using **command-line** for any question not specifically about the native terminal app

learn more… | top users | synonyms

2
votes
2answers
265 views

Summary of Apple Specfic terminal commands

Where can i find such a good list? I tried googling, but they just cover the linux basics (cd, ls, rm, sed, etc.). What are the Apple specific tools for changing settings, volumes, bundles, plists etc?...
0
votes
2answers
894 views

How Can I Send Text (and Not a Text File) to My Printer on OS X?

I know about this question (How do I send ASCII text to printer (over USB)?). But I'm working on something different. I'd like to be able to send text from within a bash script or Perl script to my ...
2
votes
2answers
651 views

Unlock Mac from Terminal or Automator

In my attempt to start iPlayer and BBC News every morning, I have scheduled Automator to open a page. It does work, however my Mac stays locked, therefore I need to get out of my bed and enter the ...
2
votes
1answer
611 views

How can I systemwide check if a keyboard shortcut is in use or has been registered?

How can I query OS X to know if an application has registered a shortcut? I could inspect every app I have or that is running at least with KeyCue and go through the Keyboard Shortcuts section of ...
6
votes
3answers
9k views

How can I download all MP3 files from a web site?

I am wondering if there is any software available in OS X that can download all mp3s or specific type of file from a URL. For e.g. I have a url http://www.parweztv.com/Khan%20Adeeb/SURA-04/ and I want ...
1
vote
1answer
870 views

Which mail daemon does OS X 10.8.4 run by default?

I'm debugging some mail related stuff on my Mac, and not quite sure how my system is even sending mail. I can run a simple command like date | mail -s test myemail@mydomain.com and receive an email ...
1
vote
0answers
223 views

Sudo works for a whole day and then stops working until a reboot

I currently have admin access to a Macbook Pro running OSX 10.8.4. I have been sudoing at the terminal for the whole day with no restart until sudo stops working. I rebooted the operating system and ...
1
vote
1answer
40 views

Can two apps be tied so that when one opens or closes, the other does so?

Can triggers be set up so that when "App A" starts, another "App B" gets started automatically? Ideally, the solution would send a quit message to "App B" when "App A" quits, but the important part is ...
1
vote
1answer
1k views

Automator to execute shell script with an input text file, copy it to specific directory

I'm simplifying making a .deb file with Automator. I currently have a shell script that does some simple actions - Ask the user for text input Do some directory parsing Execute a command with the ...
9
votes
3answers
6k views

Why is OS X able to send out email without first configuring SMTP?

When I try the command in terminal, an email is sent. I have checked there is no local SMTP is running, so what is the mechanism used by Apple behind the scene? echo "Hello" | mail -s "Test" foo@bar....
1
vote
0answers
158 views

Compiling a gimp plugin

I wish to compile the Gimp plugin "Save for Web" on Mac 10.8.4. I use brew for package management but libgimp2-dev is missing. I've downloaded Gimp 2.8.6 from here . I've downloaded the latest ...
3
votes
1answer
5k views

How to update Python on a Mac with Unix commands

After giving up on doing a disk partition and getting Linux, I decided to try and install Python 3.3.2 on a 32 bit Intel Core 2 Duo iMac with OS X 10.6.8 Snow Leopard. I did pretty much everything the ...
1
vote
1answer
245 views

Clicking on folder in iTerm2 opens in web browser instead of Finder

I have iTerm2 v1.0.0.2 and I am correctly able to open folders in my home directory if command-click on them. However I am not able to open folders on my Desktop or Documents if I command-click them, ...
10
votes
10answers
622 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
1answer
230 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?
13
votes
1answer
10k 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 -...
2
votes
2answers
3k 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
5k 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
989 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 ...
1
vote
1answer
6k 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?
4
votes
3answers
946 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 ...
2
votes
1answer
315 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" != /Users/myuser/Documents/...
0
votes
2answers
892 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 ...
0
votes
2answers
1k 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
2k 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
54 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 ...
2
votes
2answers
4k 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
182 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
114 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
3k 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
650 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 launching)...
0
votes
1answer
235 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 •••): Edit07:....
1
vote
2answers
165 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
59 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
590 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
437 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:
3
votes
1answer
562 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
5k 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
26k 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
207 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
2k 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 ...
22
votes
3answers
53k 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
864 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
629 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
232 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
898 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 ...
7
votes
2answers
7k 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 PATH="/...
3
votes
1answer
472 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 ...
3
votes
2answers
6k 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?