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

0
votes
2answers
2k views

Why does my brew installation not work?

I installed brew before, but it does not work now. When I run brew, it gives me the error -bash: brew: command not found So I tried to reinstall using the code ruby -e "$(curl -fsSL ...
17
votes
10answers
13k views

Start/stop internet sharing from a script?

Is there a way to start/stop internet sharing from the command line or maybe an apple script? The thing is that I move around my laptop between home and work. At one place I get wireless internet ...
45
votes
10answers
14k 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
1answer
20 views

How to set proxy on OS X Terminal permanently?

For every new session in OS X terminal, I have to make my proxy settings again. Is there a way to make these proxy settings once for all?
0
votes
0answers
11 views

Issue with libcurl.4.dylib

I'm trying to run Photo Grabbr to bulk download from Flickr but I can't get it to run on Snow Leopard Server (10.6.8). I get the following error in the problem report: Process: Photo Grabbr ...
1
vote
1answer
2k views

Using kdiff3 as default git diff viewer on Mac OS

I have kdiff3 installed on my Mac (Version 0.9.97, 64 bit). Here's my ~/.gitconfig: [filter "media"] required = true clean = git media clean %f smudge = git media smudge %f [user] ...
-1
votes
1answer
26 views

How to install the websploit framework in OS X 10.11.2? [on hold]

I wanted to ask how to install websploit in the Mac's terminal. I have downloaded the file from WebSploit Framework.
10
votes
5answers
3k views

Option + click in iTerm

In Terminal, Option + click allows me to place my cursor at any point on the current line-- great for editing really long commands. How can I do this in iTerm2? Update: According to this page, the ...
0
votes
0answers
13 views

why does the which command output the same path twice?

Why does this command have this output? $which -a python /usr/local/bin/python /usr/local/bin/python /usr/bin/python Specifically, why is "/usr/local/bin/python" listed twice? The "/usr/local/bin" ...
13
votes
5answers
6k views

iTerm2/Terminal full screen

Why is it not possible to have iTerm2 or Terminal app take up the full available space on the screen. Let me show an example: It's hard to see but if you look on the right and bottom edge, there is ...
0
votes
1answer
14 views

Detect Terminal Color “Theme” from Command Line

When one uses the terminal inspector, one can change many properties of the terminal, such as background color, text color, and selection color. How can I detect what these properties have been set ...
1
vote
1answer
13k 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 ...
0
votes
1answer
14 views

Copy extended attributes to new file (ffmpeg)

I'm currently trying to decode some video files with ffmpeg on my computer but am not able to make ffmpeg copy the tags from the source file to the destination file. I read through the man page but ...
0
votes
0answers
9 views

2013 Retina Macbook Pro Turn off and back on when opening the lid

This only happens sometimes but it bothers me because I have to wait for all the script I got to load again. I cannot figure why is it happening. Here is the log: 2016-02-06 20:12:17 +0100 ...
0
votes
0answers
8 views

tmutil associatedisk -a has no effect

I used this method often in the past and it always worked well. Now, however, tmutil will not re-associate my external disk. I copied the contents from drive A to drive B. Now I would like to continue ...
0
votes
1answer
61 views

Terminal Command into Applescript

I have the following terminal command that I want to automate using applescript. I also would like to have a command to cd directories to the folder where I want to apply the command first. After cd ...
0
votes
1answer
25 views

Start Terminal in AppleScript

At work I'm overseeing several users who use MacBooks to connect to our enterprise environment. One of our vendors has an old server which users access via ssh. I've created an Automator workflow to ...
1
vote
1answer
27 views

Trying to burn a CD: “hdiutil: imageinfo failed - image not recognized”

Using the Application Burn, I saved some music-CD's as image-file to the desktop as .iso, along with the right .isoinfo. Now I want to burn those images to empty CD's, but I get the following error ...
0
votes
1answer
12 views

How to configure a proxy in a new network location using Terminal.app

I'm writing a bash script, which will create new network location and configure it. The question is - how to add proxy settings to specific network location using terminal or bash script? P.S. I'm ...
3
votes
2answers
247 views

Easy way to execute shell script

I want to be able to search in Spotlight for a shell script (or something that calls a shell script) and that such shell script opens a Terminal window so the output is shown live (and I can interrupt ...
0
votes
2answers
446 views

How do I use llvm-profdata in Mac OS X Yosemite?

I have a simple question: how do I use the llvm-profdata binary provided by XCode's Command Line Tools in the terminal? I have installed the Command Line Tools and could see the binary in ...
0
votes
2answers
57 views

terminal: how do i pipe the results of grep to open a file

I'd like to grep and open a file in just one terminal command. Suppose I'm in this directory: $ ls 1.txt 2.txt 3.txt 4.txt 5.txt and I want to open 3.txt I thought I could do ls | grep 3 ...
0
votes
1answer
29 views

Path not being honored?

I have the following in my .bash_profile: $ cat ~/.bash_profile # Prompt export PS1="\h:\W$ " # Standard path export PATH="/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin: ...
1
vote
0answers
109 views

How to disable mouse acceleration without logging out?

I know I can type in the terminal: defaults write .GlobalPreferences com.apple.mouse.scaling -1 to turn off mouse acceleration BUT this requires me to log out and log back in to take effect. The ...
3
votes
2answers
72 views

How can I make a script that opens terminal and runs my executable?

My students and I are using gcc to compile programs which ask a series of questions then display a result. Right now if we are running a program called "main" for example, we have to open a terminal ...
0
votes
0answers
16 views

Batch modifying file metadata

I'm looking for an application or command line tool that can batch edit file metadata. I have some audio files recorded using a recorder that was off by 1 hour, and I want to modify the creation date ...
1
vote
2answers
44 views

Strange files named “/xEy4O” keep appearing

I'm running OSX 10.11.3 and I keep finding files named /xEy4O all over my file system. I've opened them in a text editor and they are completely empty. So they appear to be a marker file of some sort. ...
1
vote
1answer
61 views

How do I create user accounts from the Terminal in Mac OS X 10.11?

I would like to be able to create new users in Mac OS X 10.11 remotely after ssh'ing into the machine. On Mountain Lion, these steps were listed. Running dscl . -create /Users/joeadmin dscl . ...
18
votes
3answers
27k views

What steps are needed to create a new user from the command line?

What commands (or script) can create a fully functional user account on Mountain Lion, running only from the command line via terminal or ssh. It looks like an existing pair of answers might work, ...
0
votes
0answers
72 views

NFS on El Capitan: In rwxrwx— directory, Finder can't delete but Terminal can, and both can create

I have an NFS drive mounted: /../Volumes/PDISK2 -fstype=nfs,nolockd,rw nfs://10.0.0.11/Volumes/PDISK2 /../Volumes/PDISK3 -fstype=nfs,nolockd,rw nfs://10.0.0.11/Volumes/PDISK3 Taking ...
2
votes
2answers
2k views

Bash Terminal keeps showing “No such file or directory” at startup

-bash: /Users/MarksMac/Library/Enthought/Canopy_64bit/User/bin/activate: No such file or directory Basically, how do i remove the above error? I am using a mac 10.9.1 I have tried looking up ...
24
votes
4answers
7k views

Using Alt/Cmd + Right/Left Arrow in iTerm

Is it possible to move between words in iTerm using Alt + Right/Left Arrows ? Now if I press Alt+Left I will get '[D' and '[C' if I press Alt+Right.
0
votes
0answers
10 views

Open djvu file with Evince?

I have installed evince from homebrew. But I have no idea how to change the default application of djvu file to evince. Yes, I can run it from Terminal, but it's not always that convenient. This ...
0
votes
2answers
53 views

OS X give focus to a window after showing

I have noticed something that really annoys me. Say I have some applications running and then I select a particular one using Dock. This application appears on the screen but does not receive focus ...
1
vote
1answer
30 views

List number of files in multiple zip files

How can I get the total number of files in multiple zip files at the same time? I have around 1000 zipfiles in one folder and would like to know the total amount of files inside them all combined. How ...
4
votes
2answers
5k views

Howto install 'MySQL Utilities' using brew or brew cask

I installed MySQL server and client using brew. I installed MySQL Workbench with brew cask. But I don't find MySQL Utilities (something new?). Howto install that using brew or brew cask? ...
5
votes
11answers
18k views

How do I remove crashplan from my Mac

I recently tried out CrashPlan on my Macbook, but I decided not to go through with that. However, now that I'm not going to be using CrashPlan after all, I can't figure out how to remove their app ...
0
votes
0answers
13 views

use python to mount smb share from osx including special characters in the password field

I've seen plenty of scripts for mounting a smb share in osx via terminal and python. I'm working toward the python solution using the answer at the end of this similar question. The only issue I ...
1
vote
1answer
36 views

What do some of the / directories do? [duplicate]

When I run cd / && ls I see some directories in which I know the purpose of, and then others I don't. Here are the directories I do not know the functions of: /etc /opt /private What do all ...
5
votes
1answer
178 views

Command line to disconnect or connect 802.1x authentication

I have been searching for a terminal command line to disconnect or connect 802.1x authentication, but not the network interface. I was searching some help pages and it showed command lines to export ...
2
votes
1answer
240 views

Terminal Command to Check Available USB Ports

I recently took a trip and was utilizing a USB GPS Device push coordinates to a file. In the middle of the day the device decided to stop working. We were never able to get it back working again ...
0
votes
0answers
22 views

Terminal: “Invalid Argument: dirname” (El Capitan)

I noticed the issue when I first went to run defaults write com.apple.finder AppleShowAllFiles YES in OS X Terminal (10.11.2) but this was returned bash: /usr/bin/defaults: Invalid argument I'm ...
1
vote
2answers
61 views

Exiting/Starting the Terminal (El Capitan)

In the latest Mac OS X Terminal version I noticed that if I type exit and the press Enter, I get the following: Last login: Wed Jan 27 09:18:48 on ttys000 Ian-iMac:~ Ian$ exit logout Saving ...
1
vote
1answer
44 views

Getting full HTTP request from website

I am doing a project in which my Arduino needs to connect to a simple web page and retrieve the content of a text file. I want to use curl to see the response I would get if I sent the following HTTP ...
0
votes
0answers
12 views

Can't Install Debian Source

I have a jailbroken iPhone 4 (iOS 7.1.2) When I try to run "make" command, it gives "gcc: command not found" error. I tried to install "gcc" with "apt-get install gcc" but there weren't source So I ...
0
votes
0answers
14 views

Data recovery/overwritten files?

I was troubleshooting how to install boost and came across a thread on stackoverflow that seemed to be about vaguely the same thing. I ran the terminal commands written in the thread, and realized ...
32
votes
3answers
12k views

Text copied from Terminal with formatting in Mavericks (10.9), Yosemite (10.10), and El Capitan (10.11)

After the update to Mavericks (10.9), 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, ...
4
votes
1answer
2k views

Is it possible to download Apple's Command Line Tools for Xcode from the command line?

Background My job gives me temporary MacBook Pros for travel purposes. I get them with a fresh OS install before I leave, and when I return, they blank the hard drive. The trips usually require some ...
1
vote
0answers
28 views

What command(s) are ran when you right click on a text and click “open man page” in Terminal?

I know it obviously does man, to show the request manual page. However, I wonder what it pipes the output to, because it shows the entire thing at once, but it starts from the beginning. I would love ...
0
votes
1answer
25 views

Limit CPU when starting a task in terminal

I'm working on an application for part of a school project that simulates an operating system and which I launch using the Terminal. By nature it will consume all possible resources to loop over and ...