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

18
votes
2answers
16k views
0
votes
1answer
3k 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
39 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 ...
8
votes
1answer
316 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
14 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
719 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 ...
2
votes
2answers
61 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
36 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
27 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
8k 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
35 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
41 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 ...
51
votes
2answers
21k 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.
0
votes
0answers
153 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
18 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
56 views

Accidentally did rm -r ~/.Trash

What should I do now? Will my computer be okay?
0
votes
1answer
98 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 . ...
14
votes
3answers
14k 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
172 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 ...
4
votes
3answers
209 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
33 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
251 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
2k 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
37 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 ...
8
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
22 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
90 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
791 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
11k 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
446 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
33 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 ...
1
vote
0answers
37 views

Changing iterm2 Terminal Color

Is there a way to bold the color of the current active terminal tab in iterm2? I do not see an option to do that on the appearance tab of preferences. I know I can change the tab style, but I still ...
4
votes
1answer
358 views

atd stopped working on OS X 10.10.3

I'm using OS X Yosemite, just updated to 10.10.3 and the at command and related (atq, atrm etc) have stopped working. Has atd been disabled in the latest 10.10.3? If so how do I investigate and ...
0
votes
0answers
64 views

Why can I open an app from Contents/MacOS/app but not by clicking the icon?

I have an application that is fully functional when opened from Show Package Contents > /Contents/MacOS/app however when I click the icon in the Applications folder the icon just keeps bouncing. ...
0
votes
0answers
62 views

Terminal Sudo “3 incorrect password attemps”

Every time I do something in Terminal where you need a password following thing comes: Sorry, try again. Sorry, try again. Sorry, try again. sudo: 3 incorrect password attempts ...
2
votes
1answer
34 views

Change background of terminal based on host

Is there a way I can have my terminal dynamically change covers based on the host I am on? For example, the default background (as determined by terminal profile) is black. Maybe there is another ...
2
votes
1answer
331 views

Compiling / installing shotdetect for OS X

I would like to find scene changes in a video with this command line tool: Shotdetect is a free software (LGPL) which detects shots and scenes from a video. Dependencies are: sudo apt-get ...
0
votes
1answer
63 views

Copy recursively files and folders, but preserving everything while gaining ownership?

I would like to copy files and folders recursively from an external drive to my internal SSD. However, when I drag and drop, and, subsequently, when I use the copied files, I am always asked to enter ...
0
votes
0answers
53 views

How to configure the pf firewall in the terminal?

I have googled it and have yet to find any good tutorials so far. Most of what I can find are for ipfw or GUI softwares. Does anyone know of any good tutorials on it? Would any of the non mac ...
8
votes
6answers
18k views

How can I save SSH Bookmarks in Terminal?

I've recently become infatuated with TotalTerminal and am tempted to switch from iTerm back to Terminal just so I can use it, except that I rely heavily on a half dozen SSH bookmarks in iTerm. Is ...
2
votes
1answer
68 views

LSOpenURLsWithRole() failed with error -10810 Can't open 'Install OS X Yosemite.app'

I'm trying to install OS X Yosemite through 'Install OS X Yosemite.app' downloaded from the Internet. When I try to open it by double clicking it, nothing happens. When I use the terminal I get the ...
1
vote
1answer
24 views

Bulk merge items sub-folders into new folder

I have a main folder with about 80 folders in, each with about 10 items in. I want to be able to use a Terminal command or something to just move every item from each sub-folder into a new one (i.e ...
2
votes
4answers
129 views

How to go to alias from terminal?

By alias, I mean the folder shortcut created when you right-click a folder in Finder and select "Make Alias". I can traverse symbolic links in Terminal with cd, but it doesn't work on aliases: bash: ...
3
votes
1answer
87 views

How to schedule run of .command file (bash)?

I have a bash script (saved as myfilename.command) and would like to schedule its run. I've tried to use Calendar event for this (which works fine with Automator scripts), but I get the following ...