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
1answer
47 views

Run Python Script on any Mac computer

Is there a way to create an executable Python script that will be able to run on any Mac via terminal, similar to a Bash script. I need any user to be able to just double click the file, and it should ...
3
votes
3answers
137 views

Bash script to click button on an HTML page

I'm trying to write a Bash script that opens a browser, clicks an HTML button on a webpage, and closes the browser after getting response. I need this script to be executable from within Terminal. If ...
0
votes
1answer
15 views

GNU screen updating or reinstalling

Is there a way of updating GNU screen for Mac OS X 10.11.5? My current screen version is 4.00.03 and would like to use the features such as layout which does not seem to be available for me. If not,...
0
votes
1answer
27 views

Exception in thread “main” java.lang.UnsupportedClassVersionError (Trying run Alda on OS X)

I've hit a wall with trying to get Alda to run on OS X. It's an executable I downloaded from here; then, as per the installation guide on GitHub, I ran chmod +x alda on it, and then moved it to my /...
0
votes
1answer
43 views

How use function keys in iPad with Apple keyboard?

I'm trying to use the Apple Wireless keyboard for coding in a terminal (with nano, vim, etc) using a app to access by SSH them in a remote server, and discover that all the function keys (Esc, F1, f2.....
3
votes
1answer
46 views

OSX El Capitan reset the number of Spaces

Is there a way of "resetting" the number of desktop Spaces in Mission Control in El Capitan? I'm working on a previous co-workers Mac Pro, and somehow mission control has....325 desktop Spaces... I ...
0
votes
0answers
17 views

How to prevent KeyRepeat settings from typing repeated keys when no key is depressed

Initially, my issue was that I could not type a series of the 'A' character by holding down shift-a. Instead, I was presented with a bubble above the held letter for all sorts of 'A's with umlauts, ...
0
votes
0answers
30 views

External Hard Drive Not Showing Up after dragging it to Terminal?

So from the left side of the Finder I accidentally dragged my external hard drive and now it doesn't appear there. I would like to see it there, I know it's reading it because I did an ls /Volumes and ...
0
votes
1answer
71 views

ICMP packet with a negative round trip time?

I often keep a ping running in my Terminal so that I can pop it up to keep an eye on any network issues in our office. Recently, I ended a long-running ping session and noticed in the summary ...
-1
votes
1answer
55 views

Refreshing env variables by sourcing not working

I installed torch in my MacBook Pro (running El Capitan). Now for using torch, I've to refresh env variables. Official torch document asks me to run source ~/.profile. But the terminal is showing No ...
0
votes
0answers
32 views

Is there a way to turn off/on user account without deleting it running on OS X El Captain?

I want to turn off a user account without deleting the account and its content, so it won't appear in the login window and be able to turn it on again. I tried sudo dscl . create /Users/hiddenuser ...
1
vote
1answer
50 views

How to enable a disabled User Account on a MacBook Pro running OS X El Captain?

I disabled a User Account in the System Preferences > Users & Groups > Right-click on a User > Advanced Options... > Login shell: using: /bin/false Now the disabled account is visible in the ...
1
vote
0answers
28 views

Error when trying to “brew install rbenv”

I am trying to install rbenv by following instruction from the site Ruby on Rails development setup for Mac OSX when I try brew install rbenv I get the error below: Error: rbenv-rbenv already ...
0
votes
0answers
67 views

FFMPEG Unable to find a suitable output format for [partial path from input]

Up until a little bit ago I had an Automator app with applescript and embedded bash for video conversion with ffmpeg and it worked great. Now for some reason I keep getting the following error: [NULL ...
0
votes
1answer
44 views

Resources for programming a text based interface in Swift? [closed]

Are there any tutorials someone could point me at for creating a terminal based, text interface application for OSX? Something sort of looking like Lotus 1-2-3 for DOS.
2
votes
1answer
76 views

User specific host file

I would like to add a user specific host file on my Mac (El Capitan 10.11.5) to a users home directory and have this be checked in addition to /etc/hosts when resolving domain names. I found a ...
0
votes
1answer
19 views

Script or App that identifies corrupt music files?

I'm wondering if there is a Terminal command or AppleScript or any sort of app that can scan a collection of MP3s, WAVs, and FLACs, and determine if they are corrupt. iTunes skips songs once it hits a ...
0
votes
1answer
49 views

Screwed up my 1TB HD iMac27 - I am running OSX 10.11.5 need to rebuild it in Terminal

** Not sure what I did but I need to regain the space on my 1TB HD. I have made a full back up and need to know the step by step commands in TERMINAL to do this. As you can see I have access to only ...
0
votes
1answer
55 views

Terminal.app and tmux session, can't use “open” command (without tmux it works)

I use Terminal.app and a tmux session. > open -a VLC file.mp4 The window server could not be contacted. open must be run with a user logged in at the console, either as that user or as root. ...
1
vote
2answers
30 views

screenshots storage place back to desktop impossible

I previously changed the settings of which folder to save screenshots. Now I want to go back to the default settings, storing it on the desktop. I have read what to do, in Terminal enter:defaults ...
0
votes
0answers
32 views

Calling terminal command (pdfcrop) either directly from python or from within applescript (do shell script)

on OSX, I am using applescript to get a latex string from an application (OmniOutliner), process it via a python script that calls pdflatex and pdfcrop, and paste the final cropped pdf back into ...
0
votes
1answer
41 views

Command-line keychain access not showing any results [duplicate]

I have been trying to learn to control my computer through command-line, and keychain access is what I am trying now. I have been using the security command, and attempting to get my wifi password (I ...
0
votes
0answers
9 views

How Deep Do I Need To Define Paths for the Cosign Terminal Command?

My company is registered as an Apple Developer. Our firm has created Mac apps outside of Xcode that we want to code sign. They will run on OS X 10.8+. This link shows the tasks needed to code sign ...
0
votes
1answer
59 views

How to encrypt zip file and filenames via command line?

Using command line on Mac, I know that I can encrypt a directory with the following command: zip -er Directory.zip /path/to/directory However, this does not encrypt the filenames themselves. If ...
0
votes
0answers
70 views

xcode build of citra not working

My machine: MAC OSX Yosemite 10.10.5. Situation: Installing citra (following the instructions on https://citra-emu.org/wiki/Building-For-OS-X). Everything works except the last step. Running in ...
0
votes
1answer
50 views

Problem “do shell script” on curl – Works in Terminal, but not via “do shell script”

I want to use "curl" with "do shell script" in an apple script. It already worked some months ago, but then the provider changed to https-only service. So I update curl on Mac OS Terminal: $ curl -V ...
0
votes
0answers
30 views

glxgears throwing Error: couldn't open display (null)

I installed glxgears through Macports with sudo port install glxgears. I am now trying to run glxgears by typing glxgears in my terminal, but the error comes up: Error: couldn't open display (null). ...
0
votes
0answers
24 views

How do I remove bookmarks from Terminal window?

With El Capitan, the Terminal app can automatically create marks, and bookmarks. However, there seems no obvious way to delete a bookmark that one's created (by accident). How can one delete a ...
0
votes
1answer
29 views

Trying to delete an application that always says it is open (in this case AVG AntiVirus.app)

This is the troubleshooting I've done so far: Went to Applications>Utilities>Activity Monitor and force quit the process. Shortly after doing that AVG shows up again in activity monitor. I went to ...
0
votes
0answers
18 views

Trying to install CANDLE in Mac OS X. Following Error report is showing. Should I install LibXm.so, if yes, how?

For more information about CANDLE(Collection & Analysis of Nuclear Data using Linux nEtwork): http://www.iuac.res.in/NIAS/Downloads/candle.txt
0
votes
0answers
81 views

Unable to start XVfb with XQuartz 2.7.9

Is there some issue with XQuartz-2.7.9 ? After installing XQuartz in my Mac 10.10 the command - /usr/X11/bin/Xvfb :4 -dpi 200 -screen 0 1000x1200x8 fails with the following error: ...
0
votes
1answer
58 views

AirPort Express and ssh

So, I've been trying to understand networks a little better and I'm playing around with ssh. I've learned how to set up port forwarding from my AirPort Express directly to my computer, but I am ...
3
votes
1answer
49 views

How to open a URL without launching a new safari tab?

I would like to write a script (AppleScript or shell script) to open a URL such as https://itunes.apple.com/ca/station/beats-1/idra.978194965 which then launches iTunes and play a radio station. ...
1
vote
1answer
32 views

How can I change the black text in my terminal?

I have changed the color in my profile, but some text is still black. How can I make all black text inverted, or any color that's visible? I'm including screenshot of my preferences and the issue. The ...
0
votes
1answer
35 views

esc button OS X needs to be released on every command

In terminal I use escB or escF to jump through the words. If I want 2x back I've to do escB twice. Otherwise I just start typing F or B in Terminal. The modifier keys ctrl / alt /cmd work ...
0
votes
0answers
12 views

How to set a folder as an time machine backup?

I updated my MacBook Pro and it now it won't boot. I am using my hard drive in an enclosure and an external hard drive to extract the data from the SSD that's inside the Mac. The HD that's in the ...
0
votes
0answers
9 views

Mount AS400 share on OSX 10.10 missing files

Running 10.10.x and trying to mount to our corporate IBM AS400 share via: mount -t smbfs "//user:pass@192.168.10.43" /Volumes/AS400 Works, however if I navigate to the folder I need ls /Volumes/...
1
vote
1answer
32 views

Run shell and type output

I am using iTerm2. I would like to have a keyboard shortcut which runs a command and types the output at the current cursor. Example: I have a function branchName which returns/prints the current ...
0
votes
0answers
36 views

Virtualbox passthrough USB token From Commandline

I need to change ownership of a USB token from the host to the Guest Virtual machine in VirtualBox - without removing the token from the Mac. I have it working that you can start up the VM and then ...
1
vote
1answer
38 views

output of the who command

I am trying to understand the output of the who command. When I add the -H flag to print the headers, the second column ( the one signifying the users logged in) is titled LINE. I am trying to ...
0
votes
2answers
63 views

El Capitan can´t see or remove partition but it shows up in Terminal

EDIT: managed to reformat the partition to JHFS+, after accidentaly creating another partition i merged the new and the old one i dint want, then it let me merge all of them together. I created a ...
0
votes
1answer
38 views

Does the `mdls` terminal command access metadata in resource forks?

I always knew that Mac operating systems had a concept of "resource forks" but have just learned that this feature has in fact been deprecated since the arrival of OS X. I also just discovered the ...
3
votes
1answer
42 views

what is the style of command line editing used by the terminal emulator?

in bash in gnome terminal in Ubuntu, the command line editing commands are by default emacs-style, and can be changed to vim-style. In bash in the terminal emulator of Mac, the emacs-style commands ...
0
votes
1answer
38 views

How can I change the apperance of terminal to make it indentical to Ubuntu's terminal

I like using the default terminal application, but as I use both Ubuntu and OS X a lot I want to make them behave and look the same. How can I change the Mac terminal to make as identical as possible ...
2
votes
0answers
29 views

Bash Ctrl-A Returns to Start of Line but Doesn't Display Properly

When I ssh into a Linux server from bash Terminal, I can use CTRL+A to return to the start of line properly, and CTRL+E to go to end of line and everything works fine. When I use bash locally on my ...
2
votes
2answers
80 views

Log file that `sudo last` accesses?

The bash command last (needs sudo) prints out logs, which contain information on when different users log in/out of the shell. I have been looking for the file that stores this information, that last ...
1
vote
1answer
143 views

Homebrew putty installation does not make the putty command recognisable

I would like to instal putty with use of Homebrew. I'm performing the following command: brew install putty which gives the seemingly correct output: ==> Downloading https://homebrew.bintray....
2
votes
0answers
31 views

What are the different OS X clipboards

Everybody uses the general OS X clipboard, which can programmatically accessed with pbcopy -general and pbpaste -general. However I noticed that the manpage of pbcopy and pbpaste also mention: -find ...
-3
votes
1answer
66 views

X11/Xlib.h file not found

I am trying to install Savi-program for monitoring satellites found here via Terminal. I am developer so I have XCode installed. which gcc returns /usr/bin/gcc. Command make ARCH=macosx once in the ...
1
vote
2answers
112 views

AppleScript set focus on terminal window

I have a AppleScript, which changes the position and the size of the application Terminal: Like here: tell application "Terminal" set position of front window to {1, 1} set size of front ...