Using programs and commands that do not have a graphical user interface (GUI) but are rather controlled by typing text commands into a terminal program, or shell.

learn more… | top users | synonyms (2)

6
votes
0answers
738 views

Check the battery level of connected bluetooth headphones from the command line

I am trying to check the battery level of my wireless headphones from the command line. I came across a few discussions, and it seems all I need to do is enter the following: ioreg -c 'deviceName' ...
3
votes
0answers
1k views

Is it possible to launch and use Itunes with the command line on windows?

Is it possible to use iTunes with the command line on Windows? I want to pass actions to the program like to play a playlist. Is it possible to use any iTunes functionalities in the command line? ...
2
votes
0answers
30 views

Why would “ls -R” on a mounted CDROM fail with e.g. “ls: notes: No such file or directory”

I popped an old CDROM into my computer and executed ls -lR /Volumes/CDROM and received dozens of error like this: ./notes: ls: notes: No such file or directory but /Volumes/CDROM/notes does ...
2
votes
0answers
51 views

Issues with Anki and BasicTeX

My last Mac worked with Anki to display LaTeX formatted equations but I am still, but I haven't been able to transfer it over. My steps thus far: I obviously downloaded and installed Anki and ...
2
votes
0answers
49 views

How to customize drag-n-drop-to-Terminal path escaping results?

How can I change the way in which filenames are escaped (formatted) when dragged from applications and dropped into Terminal? For example, paths may be escaped with \, just spaces (), or other ...
2
votes
0answers
34 views

Grant rights on a certificate to an app through the shell

I'm currently looking for a way to grant an application rights to a certificate in my /Library/Keychains/System.keychain through the shell. I can currently do this through the Keychain Access App by ...
2
votes
0answers
47 views

Terminal Change text appear area to bottom right

I want my terminal to have the prompt lines (I don't know what to call them) come from the bottom of the terminal window, and be fixed to the right of the screen, not the left. Is there any way to ...
2
votes
0answers
257 views

Command line tool for interacting with Bluetooth Low Energy devices, similar to gatttool

I've just found out that some Python code I've got working on Linux also needs to work on OSX. For reliability reasons, on Linux I've been using a cludgy but effective approach to reading and writing ...
2
votes
0answers
91 views

Connect to server on command line

I am currently trying to connect my NAS on OSX 10.9.5 using the command line. This will work fine if I first connect my NAS using Finder: I select it in the "Shared" section of Finder's sidebar, click ...
2
votes
0answers
652 views

Get rid of the “Instruments wants permission to analyze” prompt, from command line, in Yosemite

In our jenkins build automation environment we have several OSX nodes, now all updated to Yosemite, where we run ios simulator tests. The problem is that on any newly introduced node simulator tests ...
2
votes
0answers
145 views

How to set positioning/filling of desktop background image with AppleScript

How can I set the positioning/filling of the desktop background image from the command line with one of the available options listed in the Desktop & Screen Saver preferences: Crop, SizeToFit, ...
2
votes
0answers
140 views

Updating modifier keys from the command line takes no effect

The goal: map "Caps Lock" to "Control" from the command-line. I'm trying to update the modifier keys from the command-line with the following command as explained here and here but to no effect. $ ...
2
votes
0answers
51 views

Get RSS Memory usage from entire OS on command line

I need to get the entire count of RAM being used on a command line. I can get individual process RSS usage using ps -o rss= -p #{pid} How do I get all the memory usage for the entire system on the ...
2
votes
0answers
121 views

Does OS X support AnyIP?

I would like to assign a complete block to my mac as described in this question: Can I bind a (large) block of addresses to an interface? There it is explained that AnyIP is supported for IPv6 by the ...
2
votes
0answers
104 views

How to manually start a service without having a controlling terminal?

I maintain an application that runs as a background service, started either on boot as a StartupItem or manually from the command line. I want to know how to launch it manually without having a ...
2
votes
0answers
220 views

How can I revoke an applications access to keychain passwords from the command-line?

Applications can be granted permanent unprompted access to passwords. You can add and revoke these privileges using the Keychain Access utility. (See this answer) I'd like to be able to revoke from ...
2
votes
0answers
653 views

Where does Transmission store logs for called scripts?

Transmission has an option to run a shell script when a file finishes downloading. I'm wondering where to look for logs for it – it seems like it only executes half of my script but can't figure out ...
2
votes
0answers
127 views

“df” command making network requests?

I was watching Little Snitch for another process, and noticed df was making requests to various servers. I thought df was only for checking free disk space locally, but it appears to be doing more ...
2
votes
0answers
865 views

curl gives error - possibly fink related?

When I try and run curl in the OS X Terminal I get the following error: dyld: Library not loaded: /usr/local/lib/libcurl.4.dylib Referenced from: /usr/local/bin/curl Reason: Incompatible library ...
1
vote
0answers
21 views

El Captan disk utility did not see erased partition after fail bootcamp install

I try to get my full drive after fail a bootcamp install of Win. Now I have removed extra partition from my fusion drive, but can’t see empty space using the el captan disk utility. Using shell, ...
1
vote
0answers
31 views

Does rsync have issues with Unicode Characters in filenames?

I run rsync via a crontab every night to make an offsite backup of a directory's state, fairly trivial stuff really. While going through the logs, I noticed that in particular there were a set of ...
1
vote
0answers
18 views

Can I list all programs that depend on a given framework?

I'm curious about what all on a stock OSX install uses the WebKit framework, since I keep seeing it pop up in crashlogs and it's supposedly a handy rendering swiss-army knife. What's a good way to ...
1
vote
0answers
128 views

Curl terminal command syntax from Applescript

I want to execute a curl command in Applescript that does the following (per this SE question/answer): http://superuser.com/a/1054803/471181 ...Do an HTTP POST of the contents (as a string) of a ...
1
vote
0answers
138 views

Removing XCode while keeping the command line tools (on El Capitan)

As by subject. There are a number of links, such as this that deal with the issue but are not El Capitan specific and/or are just not that on the subject or are not up to date. Is it possible to ...
1
vote
0answers
12 views

Pipe multiple homebrew commands

I installed pup using Homebrew and my shell - Zsh, with OhMyZsh - is not recognizing the command when I use it multiple times using pipes. For example, this works fine: cat index.html | pup 'meta' ...
1
vote
0answers
211 views

OS X El Capitan bash shell not working in Terminal

I have a weird issue with my bash shell in OS X El Capitan. I was messing around with my .bashrc file today, and now when I open my terminal I see nothing out of the ordinary (no messages, just the ...
1
vote
0answers
47 views

`scutil --nc start` not connecting PPPT VPN - OS X 10.11

From the answer to this question I have tried scutil --nc start 'us.justfreevpn.com' to connect a PPPT VPN, but all I get is the following popup: Frustratingly, if I manually start the connection ...
1
vote
0answers
11 views

Why the service does not start after logging in

The service is jenkins installed with homebrew on Yosemite. I have this: ~/Library/LaunchAgents/homebrew.mxcl.jenkins.plist and this: % launchctl list | grep jenkins - 0 ...
1
vote
0answers
20 views

How to see the commands echoed on the Terminal?

Maybe is a silly question but I'm a newbie in OS X and I didn't found the answer anywhere. The thing is that when I execute some command that executes other scripts/commands/whatever I don't see on ...
1
vote
0answers
52 views

How to compare files for an entire drive from a before and after (or changes during) state?

I would actually very much like an option similar to fseventer, but it appears that not only will it support recent OS releases, but that it is altogether no longer available. What can I do for 10.10 ...
1
vote
0answers
264 views

Dual-booting a Linux distribution on a Mac with Fusion Drive

I'd like to install a Linux distribution alongside OS X on my 2014 5k iMac with a 3TB Fusion Drive (128GB SSD + 3TB HDD). Most guides about dual-booting Linux I've found focus on regular ...
1
vote
0answers
77 views

Profile Manager: Using command line, is there a way to print/lookup iOS apps by at least title, that are associated/available in Profile Manager

Restating my question: Using command line, is there a way to print/lookup iOS apps by at least title, that are associated/available in Profile Manager Goal/Context: I am looking for a way to automate ...
1
vote
0answers
58 views

plutil returns error when a string numeric key is used

I'm trying to insert a row to a plist by using the following command plutil -insert "160" -string "hi" file.plist However the system was not so happy about the fact that I was using a numeric key ...
1
vote
0answers
36 views

Command line replacement for tmutil

Anyone know of a command line replacement for tmutil, either script or binary? Failures of tmutil: Does not log. No meaningful diagnostics. Cannot resume interrupted restore. Cannot overwrite ...
1
vote
0answers
57 views

Setting up command line email for Mac Yosemite

I am trying to setup my system to be able to send emails from command line. This link explains the steps, and I am able to send emails. However, I have one issue, the sender name is picking up the ...
1
vote
0answers
158 views

defaults: command not found

i have two users on macbook pro (yosemite). one of them has access to the defaults binary in /usr/bin the other user gets command not found. looking up in /usr/bin --> no defaults. both accounts are ...
1
vote
0answers
399 views

Does OSX 10.10.4 support LZMA compression at the individual file level (not tar files)?

From the command line, I would like to compress some database dumps using the LZMA algorithm. And, OSX adds XZ support (written in October of last year), claims " It turns out the XZ support in OS X ...
1
vote
0answers
95 views

Command Line Tools update description of changes

When Apple provides updates for OS X and other software it typically also describes the changes introduced in that version, as displayed in the App Store application's Updates tab or in a separate ...
1
vote
0answers
631 views

mkfs.jffs2 or equivalence on Mac Os X

I need to use mkfs.jffs2 command on Mac OS X. On Linux, the command is installed with mtd-tools package, but I can't find it from homebrew. I tried to build from the source, but I have numerous ...
1
vote
0answers
245 views

Changing color of text in terminal for program output

This might be answered already but I could not figure out a good way to phrase it to look for an answer so I hope you'll bear with me. I want to change the color of the text output on Terminal if it ...
1
vote
0answers
2k views

Command line tool installed, but gcc/g++ compiler not working

Heads up, I have a similar problem such as in this question, but it wasn't resolved: how to debug configure.sh errors when compiling rsync on Yosemite So basically I am looking to compile code via ...
1
vote
0answers
134 views

Cannot compile anything anymore after upgrading to Yosemite

I noticed after upgrading to Yosemite that none of my upgrades in homebrew would work anymore. I noticed that it was a problem in general with compiling any kind of C code. The error I get is: In ...
1
vote
0answers
17 views

Preventing less from quitting when I scroll down

I don’t know if it was a change to less itself or to the Terminal app, but when I upgraded to Yosemite I noticed that I could use the mouse scroll wheel to move around in less. Whenever I use this ...
1
vote
0answers
135 views

How do I configure CURL to use the same root certificates as Safari?

It seems that CURL on OS X (10.10) is broken because it does not contain the same set of root SSL certificates as Safari. Due to this it seems that there is a high chance for your to be unable to ...
1
vote
0answers
1k views

Why can I not create a directory on my external hard-drive?

When I try to make a new directory on my external hard-drive I get a message saying that it is a "Read-only file system" LU06296APPLE:~ fortinok$ mkdir /Volumes/Seagate\ Backup\ Plus\ ...
1
vote
0answers
29 views

Filling areas of Json script with user prompts

I am wanting and Applescript to fill certain parts of a Json script via user input prompts, but not sure how to place the results in the correct areas? And to then have the result copied to the ...
1
vote
0answers
53 views

determining Preferred Language in OS X via cli

I was hoping to do something like: defaults read -g AppleLanguages | awk -F, '/[^(]/{print $1;exit}' but if only one language is listed in "Preferred Languages", then defaults read -g ...
1
vote
0answers
32 views

Modify plist.info so program uses different icon based on command line arguments

I have an application, Firefox, I launch it with different command line arguments: -P "dev profile" -no-remote -P "ext testing" -no-remote -P "Main" -no-remote I would like to tell the plist.info ...
1
vote
0answers
32 views

Can I get less(1) to display the final line, without selecting it?

When less(1) is looking at a file with a long name, pressing = updates only the final line on screen. For example, with the Terminal window at 80 columns and 27 rows (the default, I think), if I do: ...
1
vote
0answers
85 views

can anyone explain the default view of top on OS X 10.10

There are a lot of fields that are not described in the man page (as far as I can tell anyway). In particular these 3: BOOSTS %CPU_ME %CPU_OTHRS