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
0answers
5 views

How can I fix the per-site table lookup error for postfix?

I have been trying to use the two following commands to send email using Mac OSX terminal (postfix) printf "Subject: Test" | sendmail -f sender@outlook.com recipient@outlook.com and echo "Email ...
0
votes
0answers
12 views

can't commit network settings via shell

I'm writing a Python script that changes network settings with shell commands like networksetup -setv4off 'PANTECH UML295' and networksetup -setdhcp 'PANTECH UML295'. When I enter these in Terminal, I ...
0
votes
2answers
97 views
+100

X11 app no longer opening since 10.10.3

After upgrading to 10.10.3 X11 applications are not opening anymore from the terminal. The X11 symlink in /usr is correct $ ls -l /usr/X11 lrwxr-xr-x 1 root wheel 8 Aug 7 2014 /usr/X11 -> ...
0
votes
1answer
26 views

Correct Syntax to change default Screenshots and Screencapture save location?

I would like to change the default screenshot location for OS X Yosemite 10.10.3 using Terminal. But this command is not working, where subfoldername = "name of my sub-folder" I want to store my ...
4
votes
2answers
6k views

How to enable Syntax highlighting on Vim in Mac OS Terminal?

Is there a way to let Vim on Mac OS highlighten syntax of different languages in Terminal? I would guess for vim it is a .vimrc thing, right? (But I cannot find this file in my home folder).
0
votes
2answers
17 views

Restore Mac from Time Machine Backup via Terminal

I ran into some major problem today when trying to delete old TM backups from an external drive. Now that I have a Time Capsule I wanted to clear the old backups from another external drive. At some ...
1
vote
1answer
22 views

hostname returns another device's name

I realized that the hostname had changed while I was doing some work using terminal in OS X Yosemite. I thought there might be an IP address conflict so I reset it. However I still get another ...
10
votes
5answers
9k views

Waking display from terminal, general waking

This is a two part question. A practical, "how to" question is first, and then I ask for configuration suggestions. First, I put my displays to sleep at night, and I would like to be able to wake ...
1
vote
0answers
34 views

Limiting TCP connections

How can I limit TCP connections on Mac using Terminal? I used iptables on Linux (eOS) to limit the connections of an application (Ace Stream Player) as follows: $iptables -A OUTPUT -m limit --limit ...
0
votes
2answers
28 views

Where is the '^]' character on an AZERTY (French) keyboard?

Same question as this one on superuser: where is telnet's escape character, ^] located on an AZERTY (French) keyboard?
17
votes
2answers
15k views
0
votes
1answer
2k views

My Finder is not responding and there are no documents on Desktop after downloading OS X Yosemite

I've just upgraded my Macbook Pro (15 inch, mid 2009) to OS X Yosemite and it is running slowly and my Finder is not responding at all and none of my documents are on my Desktop. I have tried taking ...
5
votes
3answers
5k 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 ...
0
votes
1answer
21 views

How to add watermark to all video files in a folder? (Mac, mencoder, terminal)

Is there a way to add watermark to all (mp4) video files in a folder. I have like 1000 videos in one folder and It'll take a long time to change one by one manually - so, maybe, there is some kind of ...
5
votes
1answer
249 views

OS X terminal “open” command and keeping focus on the command line

I appreciate the "open" terminal command to launch OS X apps. When invoking the open command for any purpose, it is overwhelmingly likely that I will have at least one other command I would like to ...
0
votes
0answers
10 views

how to change dialog box default size

After last update to 10.3.3 "Open File" dialog is very small by default (much too small on a a hi res screen).I believe the default size can be changed using Terminal. But how? Small dialog boxes were ...
8
votes
6answers
715 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 ...
1
vote
2answers
31 views

Can’t find .plist files

I can’t find the .plist file for TextEdit, Preview. I’ve looked into /Library/Preferences, ~/Library/Preferences, and ~/Library/Containers. I have tried opening the app and changing the preferences ...
1
vote
1answer
26 views

Can I open a file in Preview from the Terminal?

I know that I can open a file with an external program from the Terminal with open, and that works for most applications. However, when I try to use a command like open -a Preview info.txt, it ...
2
votes
1answer
23 views

What is the difference between open (-a) <app> and double click in finder/spotlight?

I recently installed leksah on my Mac (once directly, once via brew cask). When I try to open it in Finder, Dock or use spotlight the window flashes open for a second and then closes immediately. ...
22
votes
3answers
7k views

Text copied from Terminal with formatting in Mavericks and Yosemite

After the update to Mavericks, anything copied from Terminal is pasted in the target app with the same formatting as in Terminal, in my case, white monospaced letters on a black background, e.g.: ...
0
votes
1answer
28 views

bash- command not fount error

I tried to install omnet++ on my Macbook pro (OS 10.10) yesterday. I got an error so I delete path in my bash-profile. Now, every command I try to run in my terminal shows an error of command not ...
3
votes
4answers
4k views

Dig not returning authority section?

Digging wikipedia.com, on my Macbook Pro, returns: $ dig wikipedia.com ; <<>> DiG 9.8.3-P1 <<>> wikipedia.com ;; global options: +cmd ;; Got answer: ;; ...
2
votes
2answers
1k views

“xcode-select --install” versus retrieving the dmg from Apple's developer website

I would to ask a question closely related to already existing posts (How to install command line tools without error that is not currently available on Software Update server? and ...
1
vote
1answer
31 views

Is there a way to color parts of the man pages on the terminal?

I would like to color some parts of the output of the command man, specifically I would like to be able to change the color of the most important things, for example the options or the first ...
49
votes
2answers
20k views

Open Finder window from current Terminal location?

If I am in a specific path in a Terminal window, how can I open that same window in a new Finder window? Note: This is the opposite of opening a Terminal from Finder.
4
votes
1answer
1k views

enabling/disabling Internet Sharing with terminal in mac osx 10.9.2

The problem is setting the internet sharing with CLI instead of GUI in Mac OS 10.9.2 I followed instructions as per this thread Start/stop internet sharing from a script? including both CLI and ...
0
votes
0answers
49 views

Single User Mode not starting

First of all, there's no firmware password or anything fancy. I'm trying to diagnose a late-2011 MacBook Pro 15", and I'm trying to get into the single user mode. I press and hold Cmd+S (the left Cmd, ...
0
votes
0answers
16 views

2011 MBP won't go into Terminal or let me log in

I have a complicated issue, please bear with me! I seem to have really screwed myself over. My 2011 MacBook Pro (Maverick) won't let me access Terminal. Once or twice it showed up for a second but ...
0
votes
1answer
55 views

Accidentally did rm -r ~/.Trash

What should I do now? Will my computer be okay?
0
votes
1answer
97 views

How to prevent MacVim from inheriting .profile as if it was Bash itself?

I have this guard in my .profile: if [ -n "$BASH_VERSION" ]; then if [ -f "$HOME/.bashrc" ]; then . "$HOME/.bashrc" fi if [ -f "$HOME/.bash_aliases" ]; then . ...
10
votes
4answers
2k views

I-beam cursor color in Mavericks's terminal

After upgrading to Mavericks the I-beam cursor in the terminal became less visible (see screenshot, I am using the Pro profile with a dark background) Is there a way to change the cursor's color or ...
14
votes
3answers
13k views

Run AppleScript from bash script

If I wanted to run an AppleScript from within a bash script I could call a file with the list of commands that I require to execute. #!/bin/bash {some commands} osascript file.scpt {other commands} ...
5
votes
5answers
3k views

Alternatives to command line unzip?

I've found that the command line unzip tool doesn't gracefully handle some of the files I'm unzipping: it makes a bunch of junk directories, and creates files whose resource forks aren't found. ...
2
votes
1answer
171 views

Print file from terminal via smb

So UI printing fails with no reason as always. I hope that I can get more details by printing from command line. Tried smbutil print //user@host/share file got: smbutil: unknown command print ...
2
votes
2answers
96 views

How to find .bashrc or .zshrc?

I just got a MacBook Pro and am in the process of trying to get GNU commands installed. I'm following this guide, but I don't know how to do: Then add the following line to your .bashrc or .zshrc: ...
4
votes
3answers
165 views

Script to change downloaded mac wallpaper automatically?

I want to change my mac wallpaper daily with microsoft bing images. I found this script that download the daily picture automatically, but I sill have to set the wallpaper automatically. Is it ...
1
vote
0answers
21 views

How to find out process owner of unidentified windows?

I have an odd error that I have not been able to associate with an application or PID properly. In Windows, there is Process Explorer with the very handy target function that allows you to click it ...
1
vote
2answers
250 views

Is there a command similar to Linux's command-not-found?

Most Linux operating systems have a package like command-not-found (http://packages.ubuntu.com/utopic/command-not-found), which provides suggestions when a shell command was not found, e.g. because ...
2
votes
2answers
1k views

Process completed immediately after opening Terminal

After I open Terminal in OS X: Last login: Tue Oct 28 10:29:21 on ttys000 login(14773,0x7fff7572f300) malloc: * error for object 0x7fd4bb715110: pointer being freed was not allocated * set a ...
1
vote
1answer
34 views

How to show/hide invisible files and folders from Service menu?

How to show/hide invisible files and folders from Service menu? By default files and folders whose name start with . is invisible. In order to show them, you can use the following command in ...
7
votes
4answers
2k views

look up a word in Dictionary.app in Terminal

Is there a bash or applescript to look up a word in /Applications/Dictionary.app from a Terminal window ? open -a /Applications/Dictionary.app/ --args word ignores --args, says "type a word to look ...
1
vote
1answer
19 views

To concatenate with BSD Join

I want to concatenate in BSD Join. Data Model Decreasing Constant Increasing 2025 75.5 82.5 89.5 2035 65.5 82.5 102 2050 49.5 82.5 112 and error configuration in ybar Model Decreasing Constant ...
0
votes
1answer
41 views

Equivalent to Alt + dot 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 ...
1
vote
2answers
84 views

Does iPhone 5 have a terminal?

I'm new to iPhones and Mac, but I pretty ok with Linux. I think I could solve some of my networking issues, if I could just get into a bash shell, but I haven't been able to locate a shell. Is there ...
0
votes
2answers
739 views

Using visudo to edit sudoers on Mac

I have managed to make the sudoers file on my Mac erorr. eg. $ sudo visudo >>> /etc/sudoers: syntax error near line 45 <<< sudo: parse error in /etc/sudoers near line 45 sudo: no ...
9
votes
3answers
10k views

Reset your PATH variable

I stuffed up (basically wiped) my PATH variable. Is there any way to reset it to the default? I look at How do I reset the $PATH variable on Mac OS X?, but I find it very confusing. As far as I ...
2
votes
2answers
270 views

Start/Stop Internet Sharing via Terminal in Yosemite without AppleScript

Okay, I see this question has been asked a few times before (here, here, here and here), but none of those really answer the question for me. I don't want to use the AppleScript suggestions provided ...
1
vote
1answer
24 views

How to list audio card IDs from terminal

I am developing a script which deals with sound recording. As user potentially can have multiple sound cards attached, I would like to give him/her a chance to select desired one. The software I use ...
1
vote
1answer
31 views

How can I prevent my machine from automatically downloading deleted system files?

I spilled coffee on my keyboard and most keys are now constantly pressed so the machine is not usable so I disabled the built-in keyboard in order to use an external keyboard but I am having some ...