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

How to enter internet credentials using terminal?

After attaching the ethernet cable to my Mac I need to enter username and password to access the Internet. The problem is that I would like to perform a system recovery using cmd+R at startup. There ...
0
votes
0answers
8 views

Terminal always starts from mathematica command line

This is an old issue in my MBP. If I open terminal, it doesn't show the command line, but runs mathematica. Thus I must type 'Quit[]' to exit the mathematica environment. The mathematica was installed ...
-1
votes
0answers
10 views

Is iPad useable as programming device,itself or others? [on hold]

Have tutorials that run xcode Ide on iPad which may not though enable itself too use that? Have free terminals for python,c code,c#,swift,etc but it is suggested you use a Mac desktop as iPad can't or ...
0
votes
0answers
17 views

Setting anacron on Mac - Shell Scripting

I set cron to run script every day using env EDITOR=nano crontab -e where I wrote something like this @daily path/to/sript.script. Now I want to use anacron to be sure that script is going to be run ...
1
vote
1answer
42 views

Using “tar” command in Terminal for multiple folders/files

I have many files like these SomeDirectory/RandomName.spa SomeDirectory/AnotherRandomName.spa SomeDirectory/YetAnotherRandomName.spa ... I want to unpack every .spa file in SomeDirectory to their ...
1
vote
1answer
20 views

Install automator service via command line

I would like to automate my Mac installation flow for services. The following is my script: #!/bin/sh rm -rf ./tempWorkflows mkdir tempWorkflows for filename in ./*.workflow; do cp -R "$filename" ...
2
votes
1answer
29 views

is a directory error in bash script

I have very limited knowledge of bash scripting, and I haven't been able to figure out what I'm doing wrong. So I apologize if there's an extremely simple solution that I've overlooked. I'm trying to ...
1
vote
0answers
16 views

How do I get Terminal to stop forgetting history in 10.11

The current version of Terminal seems to have restructured history into a session based history management. For example, each tab has its own history on exits of Terminal and starting up Terminal ...
3
votes
1answer
51 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
18 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
16 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
2answers
39 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
19 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
11 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
10 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
34 views

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

I wanted to ask how to install websploit in the Mac's terminal. I have downloaded the file from WebSploit Framework.
1
vote
1answer
29 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
13 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
64 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
30 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
17 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
73 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
45 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
254 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
33 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
80 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
64 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
16 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
15 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
27 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
23 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
38 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
31 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
22 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
35 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
64 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
146 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
23 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
37 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
10 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 ... ...