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

1
vote
0answers
7 views

How to differentiate between Terminal scripted launch and manual launch for .bash_profile settings

I have some .bash_profile settings that restore my last working directory every time I log in to my shell. However, I also use a program that opens a terminal window in the current directory open in ...
0
votes
0answers
15 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 ...
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" ...
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
1answer
15 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 ...
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
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
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 ...
-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.
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 ...
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: ...
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
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 . ...
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. ...
3
votes
2answers
250 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
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 ...
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 ...
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 ...
0
votes
1answer
62 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 ...
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
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 ...
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 ...
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 ...
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 ...
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
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
2answers
37 views

Run command line tools as separate app

Is there a way to run command line tools as a separate app, so I can easily switch between them with apple+tab etc? I want this for things like a mail and irc client where I don't want to hunt down ...
1
vote
1answer
30 views

OSX Terminal no longer save my commands in history

Here's my issue. Last week I realized that my OSX (10.11.13) Terminal no longer saves the command I execute in the history file(s). To be more clear: I type the command test On the same terminal ...
0
votes
0answers
20 views

SOCKS5 Proxy for only specific IP addresses without authentication

I need to connect to a specific proxy server for only specific IP addresses. I've managed to configure everything with proxyfier. However I only have the trial version. I've read much about ssh ...
0
votes
1answer
34 views

autocomplete in zsh after `npm run tdd` command

I'm using OS X 10.10.3, I have installed zsh. And every time when I want to run a specific test I configured in package.json to execute npm run tdd followed by the test file. In linux systems if I ...
0
votes
2answers
28 views

Get Number of PDF Pages in Terminal

How can I output the number of pages in a PDF in the Terminal? I looked into the lp family of commands, with no luck however.
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 ...
0
votes
1answer
38 views

Reset icon cache on MacBook

I've been trying to find out how to reset the icon cache on my MacBook, and two methods seem to always be suggested. However, the two approaches differ slightly in the third line. Method 1 sudo find ...
2
votes
2answers
143 views

Cannot kill process shown in parenthesis

I started a rather long dd command that I would like to stop. ps shows: $ ps PID TTY TIME CMD 2006 ttys002 0:00.00 (dd) The dd process is shown in parenthesis without the argument. ...
1
vote
0answers
19 views

OS X (El Capitan) Terminal Fn-Up and Fn-Down stop working as Page Up and Page Down

I've identified a strange "state" my Terminal program seems to get into. It doesn't happen on all tabs -- right now, one tap can Page Up/Down properly, and another one can't. When I open a new ...
1
vote
1answer
36 views

Can't seem to redirect input in Terminal

I'm having issues getting redirection to work in Terminal. I'm in a C++ class where we have to create an application, then find that application in the Terminal and place a text file in the same ...
0
votes
1answer
16 views

Script opens two terminal windows

I coded this little AppleScript using Automator: tell application "Terminal" do script "myscript" end tell This perfectly works but has a side effect: when I close the window, there's always the ...
0
votes
0answers
9 views

How to uninstall an app installed in iOS simulator from command line?

I'm looking for a way to uninstall an app from iOS simulator which doesn't require an interaction with the emulator. In fact I'd find more handy to do the equivalent as Android adb uninstall ... ...
3
votes
2answers
100 views

how can I search for folders ending in certain characters in Finder?

Executing a Finder search for folders seems limited to searching for folder names beginning with the search term. I can't search for folder names only using a characters in the middle or end. I'm ...
0
votes
1answer
53 views

Why won't my LaunchDaemon start?

I'm attempting to write my first LaunchDaemon: I think it's pretty simple and meets all the requirements, but it won't run. The file is at /Library/LaunchDaemons/com.noah.supertest.plist Ideally, it ...
0
votes
1answer
23 views

What does hitting the tab button do in terminal?

In Terminal, if I hit tab twice, Terminal asks if I want to list all 1580 possibilities. What is this, and what is this used for?
0
votes
1answer
17 views

Terminal window displays odd text after being resized

If I open a terminal window, and then shrink it as far left as possible, and then enlarge it again, it displays some odd text, including some of the letters in my hostname: Any way to fix this? ...
1
vote
1answer
26 views

SSH access using .pub key

I don't know if I'm overthinking this too much but I can't seem to understand how to use a ssh public key to create an ssh connection trough my mac. I'll list my steps bellow: First created the ...
0
votes
1answer
13 views

git commit editor error 'subl -n -w'

On my ElCapitan, I have vim installed but my git commit is giving errors: $ git commit subl -n -w: subl: command not found error: There was a problem with the editor 'subl -n -w'. Please ...
0
votes
1answer
21 views

Help running what seems to be a directory in Terminal?

I'm trying to export my Skype chat history with this: https://github.com/Temptin/SkypeExport After I'm in the downloads directory in Terminal, typing in (with my skype username substituted in) ...
1
vote
1answer
50 views

How to make a Mac OS X .app with a shell script?

I tried following a few tutorials, but I get this: How can I fix this? I added in a info.plist (I just copied and pasted another app's file, and changed around a few things.) Also, I used chmod +x ...