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
1k views

Enable right click Magic Mouse in Terminal

I am trying to enable the right click on a Magic Mouse connected to an iMac running 10.6.8, but due to parental controls, I am unable to gain access to the Mouse System Preferences. I know you can ...
31
votes
8answers
9k views

How do I speed up new Terminal tab loading time?

How can i speed up the terminal startup in Lion? I'm not referring to the startup of the Terminal application, but to the startup terminal windows, like when i open a new tab. I don't have anything ...
0
votes
0answers
11 views

View output from script running in background

While messing around with some Ruby programming (Using OS X 10.9.x), i have constructed a script which is forked to the background, and constitutes a loop which only exits after another process is ...
0
votes
1answer
32 views

Applescript - Get information from terminal command

I'm creating a little script to allow quick changes to the network settings of my Mac. I have got it all working, but I wanted to be able to see what the settings are before I change them in the first ...
0
votes
1answer
1k views

Mac stuck in safe boot

I accidentally did a hard reset on my mac by doing contorl+c when my mac was booting up. I typed /sbin/fsck -fy because it was supposed to fix my Mac so that it is no longer stuck in safe boot. It ...
1
vote
0answers
22 views

In bash script, how to have a script that runs in the background and starts when an application is opened

I'm making a script which should run when I open Safari. I want it to open when the user logs in and run in the background, then have part of the script to run when Safari opens. Is this possible in ...
0
votes
1answer
1k views

how to use terminal to remove item from dock

Hi I have a shell script in my login item , which runs whenever i log in to my system . It does work completely but once it exits the terminal , it leaves the terminal shortcut on my dock and I don't ...
-5
votes
2answers
58 views

How to display standard Linux libraries of OS X in terminal?

Platform: OS X: Yosemite 10.10.4; MacbookPro 15" Retina (mid-2015). I am new to OS X, I want to explore the underlying operating system and it's Linux components especially. Linux has standard ...
5
votes
2answers
289 views

How to zip from terminal without creating folder structure of path to folder?

It is possible to zip a target folder with encryption by the terminal command zip -er ~/Desktop/myzippedfolder.zip ~/Documents/myfolder/ However, the contents of myzippedfolder will be a folder ...
3
votes
1answer
16k views

Full privileges on .command file, but it says I don't have appropriate privileges

I have a command that I regularly need to run in the Terminal (for application code signing). Normally I launch the Terminal, press the up arrow until I reach the command I want, and then hit enter. ...
0
votes
1answer
45 views

Is there a way to access the “Recent Items” list from the terminal?

The Apple menu "Recent Items" entry is handy, but at times I would like to be able to access it via command line, e.g. to change to a directory I was just working in with a GUI app. Is there a way to ...
1
vote
2answers
65 views

OS X Terminal: 'ls' with 'grep !'

I would like to list all files in folder without one. I created this command ls /Users/MartinBengsch/Library/Safari | grep ! "Extensions". The problem is that the Terminal doesn't understand the not ...
2
votes
2answers
28 views

Is there a way to preserve terminal tab history across computer restarts?

I'm using Mac 10.9.5. When I run a terminal with multiple tabs (using bash shell), I've noticed that when my computer restarts, the terminal will open up with the same number of tabs that were open ...
1
vote
2answers
62 views

Remove all files in folder apart from one using OS X Terminal

I would like to remove the whole content of a folder, apart from one file. The problem is can't copy the file to another folder and then back to the first folder, because then the application doesn't ...
1
vote
2answers
79 views

Could not determine GDB version using command: sudo /usr/local/bin/gdb --version

Eclipse (Mars) version (C programming language): Eclipse IDE for C/C++ Developers eclipse.buildId=4.5.0.I20150603-2000 MacOS version: OS X Yosemite 10.10.3 HW: MacbookPro 15" (mid-2015) Retina ...
0
votes
1answer
35 views

copy folders to user library using Terminal on OS X

I would like to copy a folder to the user library using the OS X Terminal. The command line I use is cp -r. The problem is that the command runs, but it doesn't copy the folder and it returns no ...
20
votes
8answers
27k views

How to monitor file access for an OS X application?

I am looking for the OS X corespondent of FileMon, that was later included in ProcessMon. BTW, it is essential to be able to filter by process.
1
vote
1answer
55 views

Where are stored C “object” and “executable” files in Xcode?

Platform: OS X: Yosemite 10.10.4; Xcode: v6.4 (6E35b); MacbookPro 15" Retina (mid-2015). Fact: As C compiler and linker (upon standard) create .o and executable file(s) Questions: Where (please ...
42
votes
17answers
158k views

Is there a way to start the Terminal with a keyboard short cut?

Sort of like the Windows+R command in the windows world? That actually just lets you run a command but you get the idea.
1
vote
1answer
43 views

Turn Wifi off/on with a single key?

Is there a way to assign the WiFi on/off function to one of the function keys like F4 that I otherwise never use? I assume Applescript would be required. However I may want to use a BASH script ...
1
vote
2answers
36 views

Stop prompting to unlock disk

I have two hard disks on my 2012 Mac Mini. The first disk is partitioned with Mac HD and Data HD. The second drive has OS X Public Beta and Windows partitioned. I want to prevent OS X on my main disk ...
0
votes
0answers
27 views

Nano: how to obtain syntax highlighting?

I have a default installation of nano under /usr/bin/, and I am trying to make nano highlight the bash scripting language code. I have been searching around, but I had no success: I got always some ...
1
vote
2answers
194 views

How to resolve: files which are visible in Terminal, but invisible in the Finder?

In Yosemite v10.10.3, I am trying to reinstall Skype, as it does not sign-in at all, following this link. In order to do so, I need to move some files and folders to trash as to totally uninstall ...
0
votes
0answers
20 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 ...
1
vote
1answer
112 views

Terminal Command Line to find corrupted files

I do have just one corrupted photo into my Photos Library. Is there is any UNIX command line that I can use in terminal in order to scan my Photos Library Folder and find out which file is corrupted? ...
0
votes
1answer
19 views

Folder created in Photoshop not showing up in finder

This is really crazy issue i'm experiencing here: I downloaded the newest Photoshop CC 2015 and started working with it to crop some images for a client. After that, i've saved all the images for the ...
0
votes
0answers
25 views

can't use installer to install pkg. file

When i try to install flash pkg with installer, the installer just jump on the dock and can't open, then i try to install in the terminal installer -pkg Desktop/Install\ Adobe\ Flash\ Player.pkg ...
0
votes
1answer
21 views

How to have more than one app in desktop space?

Whenever I click on the maximize/full screen icon on any window, the app window is going to a new Desktop space. But this is kind of distracting because now I am not able to switch apps by doing the ...
2
votes
2answers
46 views

To install GNU time in OSX?

BSD time gives this kind of output 9990 real 0m4.371s user 0m1.548s sys 0m2.167s GNU time gives then again this kind of output 9990 1.56s user 1.46s system 82% cpu 3.648 total Brew search ...
23
votes
8answers
16k views

When I open Terminal, I get an “I have no name!” prompt

Suddenly, this morning, I open a Terminal window and I get this: I have no name!@macbook:~$ whoami 502 ** I am not a number! I am a human being! ** What gives? Anyone know what I need to do to ...
7
votes
2answers
4k views

Time in milliseconds since epoch in the terminal

How do I get the time since the epoch, in milliseconds, in the OSX terminal? The Linux/Ubuntu equivalent is date +%s.%N: Linux $ date +%s.%N 1403377762.035521859 Which does not work in my OSX ...
1
vote
2answers
56 views

Get part of result of command line in OS X

I would like to use the following command line to get the current Wi-Fi channel. /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -I I would like to use ...
0
votes
0answers
20 views

Script - Audio Files - Find, Count and Sort by type

I have a very large audio collection I have to sort. It's a mixture of M4A, FLAC, AIFF, WAV and MP3. It's the result of years of work by a now deceased person who sat in their garage ripping their own ...
0
votes
0answers
17 views

Want to copy whole data disk to ~/Backup/ and then eject, but having trouble finding the disk

I'm trying to write a script that searches for a disk in the external drive, if present have it rip the disk into a folder with the disks name and then eject, then continue searching for that disk. ...
-1
votes
1answer
43 views

Unable to delete locked file

I have a locked file on my machine that I'm unable to delete. I've tried everything (that I know of) and don't have a clue why it won't delete. Here's what I tried: Everything here sudo rm file.txt ...
-2
votes
3answers
137 views

Killing discoveryd process affected by malware [closed]

There was a malware attack on my system. It has affected the discoveryd process. I do a grep to find the process id for related discoveryd processes. I get the following - _mdnsresponder 6115 ...
5
votes
2answers
578 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 ...
2
votes
2answers
28 views

Command + fullstop VS Ctrl + C

Is there any difference between ctrl+c and cmd+. when stopping a terminal process?
1
vote
1answer
44 views

Remove .plist from /LaunchAgents

Before I go to the issue, I did find a similar thread, but it's quite outdated and I'm not sure if it suits for me. Around two years ago when I got my Mac, I decided to install Seagate Media Sync for ...
0
votes
1answer
32 views

Get terminal application name from shell

I am used to my osascript aliases. In particular, I have nx for opening new tab and closing the old one. However, my scripts use application name to send keyboard signals to it. Instead of writing it ...
0
votes
1answer
56 views

Warnings when installing pip

I just installed pip and got a few warning messages. Should I be concerned? Is there a way to check that pip was installed properly? Here's what I did: [mchenja@mycomp ~]$ sudo easy_install pip ...
86
votes
4answers
42k views

git auto-complete for *branches* at the command line?

On my linux machine I have autocomplete for branches with git. [Note we are talking about git branch completion, not bash completion (e.g. commands, files, etc). Thus NOT lane's answer at all] For ...
0
votes
1answer
28 views

Paste tool for OSX

There is paste tool in Linux but have not found for OSX. Its name was probably dpaste or something in Linux. Assume you run xxd -ps r328.raw | head -n2430 and you want to paste it to your friend. ...
1
vote
1answer
50 views

Can't see hidden files with Standard user

I am using my Mac as a Standard user. Running latest OSX 10.10.3 I have used the following command from terminal: defaults write com.apple.finder AppleShowALLFiles YES But I still can't see my ...
0
votes
1answer
27 views

What is the “host name” in bash? (\h or \H)

I set PS1="[\u@\H \w] in bash. So it should print the host name. But I do not understand the meaning and nature of the host name. Basically, I would assume that it is just a name I assigned to my ...
11
votes
3answers
1k views

Opening tab in Terminal resizes window

I like to adjust my terminal window size to fit whatever I'm working on at the moment—sometimes a tiny screen just to tail a log file, and sometimes I stretch it all the way across the screen to read ...
1
vote
1answer
29 views

To use STDBUF from Homebrew's coreutils

I run brew search stdbuf and get No formula found for "stdbuf". Searching pull requests... Closed pull requests: coreutils: upstream fix for stdbuf (https://github.com/Homebrew/homebrew/pull/32955) ...
0
votes
1answer
78 views

To install unbuffer in OSX

There is the terminal command unbuffer in Linux Redhat, for instance. I did not find it in homebrew. How can you install unbuffer in OSX Yosemite 10.10.3?
0
votes
1answer
29 views

Altering a hard linked file in one location seems to destroy it in another location

I have a file, myfile.txt, located in folder1. From the terminal I create a hard link to this file in another directory with the command ln myfile.txt ~/Documents/folder2 The new file appears as ...
0
votes
0answers
18 views

How to open application through notification in terminal shell

I have the following command to run in a terminal shell script: osascript -e 'display notification "This is a Text" with title "This is a Title"' This is a shell code running in applescript to open ...