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

“DYLD_” terminal error? [duplicate]

So, I've done some searching.. and still haven't found a solution for this. I'm not even sure what has caused it. There are no DYLD_ or LD_ flags being set at all, but I always see this when I open ...
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 ...
2
votes
1answer
243 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 ...
-1
votes
2answers
587 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 ...
1
vote
1answer
36 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
167 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
68 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", ...
6
votes
7answers
7k views

Is there a beginners guide to Unix from the OS X point of view?

I'm hoping to build on my embarrassingly-limited knowledge of the command line, and I know there are a ton of great resources out there. I'm wondering if there are any books or other resources that ...
1
vote
2answers
118 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?
0
votes
1answer
187 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 •••): ...
6
votes
1answer
3k views

Turn on Back To My Mac via a Script or Command Line

The VPN software I use for work (IPSecuritas) requires me to turn off Back To My Mac to start it's connection, so I frequently turn off Back To My Mac in order to use my VPN connection (the program ...
1
vote
1answer
33 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
333 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: ...
4
votes
3answers
5k views

Get disk temperature in terminal

Is there a command I can use just to get the hard disk temperature in the terminal? Is this possible without a third party app?
1
vote
1answer
605 views

I've managed to break my terminal, (iTerm2(b17), ZSH, OSX10.6.6)

I'm migrating to a shiny new laptop (yay) unfortunately I've manually set up my iTerm to match the old machine, but something is not right (not yay). I'm experiencing using xterm-256color doesn't ...
1
vote
1answer
187 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
4
votes
5answers
3k views

Monitor a folder for changes, and run a command when a change is detected

Is there a simple way to automatically run a (Terminal) command every time a file is changed in a specific folder? This should be possible via the command line, or a system built-in application, no ...
0
votes
0answers
189 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: ...
0
votes
1answer
685 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
263 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
125 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
464 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 ...
8
votes
6answers
690 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
3answers
3k views

How can I use Terminal to copy all files of a certain type from a failing hard drive?

I need to use terminal to copy my Pictures folder from a failing harddrive onto another drive, but I can't actually change into the folder and use just cp *.jpg ~/Documents. Is there a way to do this ...
1
vote
1answer
150 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 ...
13
votes
3answers
8k views

How can I “say” to another Mac?

I have two Macs in our house (iMac and MacBook Pro). I would like to use the say command-line utility to type something on my MPB and have it speak on the iMac, rather like an intercom system. Plus, ...
2
votes
3answers
335 views

Script to move files under their first letter name

i've a lot of files (1000+) in a single directory, and i would like to organize them into sub directories, according to their first letter. So i've 200 files starting with A, and i would like to move ...
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
496 views

Many programs notify me that “grep/sed/uname/… not found”; some run, some don't. My system(?) path is damaged, how do I go about a diagnosing it?

Some manifestations of this problem: macports won't install, MATLAB won't run, BTT works but incessantly spams me with " not found" popups, and emacs shell does not work. My interactive shell PATH is ...
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 ...
1
vote
1answer
586 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. ...
0
votes
1answer
38 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
1answer
143 views

How to find delay when launching new Terminal (iTerm)

When I press CMD+N in iTerm2 to bring up a new iTerm window, sometimes it takes 10 seconds before I get my prompt. If I immediately repeat the process, the whole thing takes 1 second. To me this ...
2
votes
2answers
2k views

Check Remote Management Status via Terminal

I need to be able to SSH into a Mac (Mountain Lion) and check if ARD is running and if so, what are the settings. Basically, I need the equivalent of going to System Preferences -> Sharing -> Remote ...
1
vote
1answer
179 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
3answers
4k views

Script to raise a single window to the front

In a script I'm trying to find the Terminal.app window containing a specific tty device and raise that window to the top. Here's what I have in Applescript so far: tell application "System Events" ...
0
votes
2answers
374 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 ...
1
vote
2answers
2k 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
1answer
675 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 ...
2
votes
1answer
183 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 ...
1
vote
3answers
4k 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 ...
4
votes
1answer
1k 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
vote
1answer
2k 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
40 views

Equivalent to Alt on terminal [duplicate]

On linux consoles I always use Alt + . to get the last argument of the previous command in history. for example if I had ls /tmp/test as last command, and if I type rm Alt - this will result ...
12
votes
2answers
3k views

How do I find the windowid to pass to screencapture -l?

The command line utility screencapture claims to be able to capture a single window without requiring interaction, but I can't figure out what to pass it. -l<windowid> capture this windowsid ...
6
votes
2answers
1k views

Change my shell to a different bash version at /usr/local/bin/bash?

How can I set my /usr/local/bin/bash (which is the 4.2 version that allows auto-completion of 'cd to directory with directory name') to be my default bash for a new window instead of my regular ...