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 (1)

0
votes
0answers
9 views

mdimport - bad packing

While forcing the index of a folder on an external drive through the command line (mdimport), I get "bad packing" pushed to stdout. Anyone have an idea what this rather cryptic error means?
1
vote
1answer
27 views

Change accessibility setting on Mac using terminal

I would like to grant accessibility permission to some apps on Mac using Terminal as per this intruction https://support.apple.com/en-au/HT202866 which is the accessibility tab in System Preferences ...
0
votes
1answer
21 views

mysql: command not found [duplicate]

How do I use MySQL from the CLI? When I use the terminal, I get: Darrens-MacBook-Pro:~ thufir$ Darrens-MacBook-Pro:~ thufir$ mysql -bash: mysql: command not found Darrens-MacBook-Pro:~ thufir$ ...
1
vote
0answers
31 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
1answer
25 views

How do I get the name of the wifi network I'm connected to?

I know how to find it out in Objective C, but I need to do this in a shell script. (I could compile and install one of the example programs given in the link, but surely there is already a command ...
1
vote
0answers
10 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 ...
2
votes
0answers
69 views

Finder gets confused after using the mv command in the Dropbox folders

I should mention I'm new to command lines. I want to rename files using the mv command in the Terminal. I type: mv oldFileName.pdf newFileName.pdf Afterwards, I use the ls command to check whether ...
1
vote
1answer
30 views

Preview image from pipe

I have a command line utility, let's called as: produce_image. So i can do the following in the Terminal: $ produce_image > some.jpg $ open some.jpg #opens Preview.app also, I have ImageMagick ...
0
votes
1answer
28 views

Is there a way to make `open -a` pass command line arguments to the app it launches?

I'd like to run OpenSCAD from the command line with some arguments. $ open -a openscad myfile.scad works as I expect. $ open -a openscad --args --help reports LSOpenURLsWithRole() failed for ...
2
votes
1answer
44 views

Mac terminal prompt's machine name becomes “bogon” after using traceroute

I was doing some traceroute test yesterday, and today, my Mac terminal's user prompt becomes `bogon:~ myUserName$` Also when I'm doing traceroute like: traceroute www.google.com it stops with ...
0
votes
0answers
29 views

Use fswatch to make files that changed

I am using the following command to run make automatically when less files in my project change. But right now make runs on all the files whenever any file changes. Is there a way to make only the ...
0
votes
1answer
54 views

Yosemite supplied curl does not support https

I am having the issue that curl is failing to deal with https, and thus I cannot update Homebrew: brew update && brew upgrade fatal: unable to access 'https://github.com/Homebrew/homebrew/': ...
1
vote
0answers
20 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 ...
0
votes
1answer
41 views

ss (netstat alternative) for OS X

How do I install ss on OS X? I couldn't find the iproute package in homebrew. Red Hat recommends ss over netstat in Red Hat Enterprise Linux 7. ss is provided by the iproute package. Red Hat ...
1
vote
2answers
71 views

How to remove space character (whitespace) from end of filenames and foldernames?

Problem with mac is that it allows space character at end of file or folder. If this file or folder with space character in end is beeing copied to FTP using Filezilla or Dropbox then mac makes ...
0
votes
1answer
32 views

How can I set the display settings using command line

I would like to configure the 'Scaled' property of my Macbook Pro display using the command line. How could I do that?
4
votes
1answer
58 views

Install Xcode without admin

Is there any way to use Xcode on a computer that I don't have admin permissions for? Is there a way to at least use command line tools like git and gcc?
1
vote
1answer
41 views

Terminal command ncdu

I've seen the terminal command ncdu is available in various flavors of UNIX. Does anyone know if the same terminal command is available in OS X? Thanks for any help. It is greatly appreciated.
1
vote
1answer
16 views

Skip first terminal beep and to display ambiguous filename expansions

Pressing TAB in the terminal (and in fact some surprise places in OS X's GUI!) either completes the only filename with the prefix provided to the immediate left of TAB, and when there are several such ...
0
votes
0answers
51 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\ ...
0
votes
0answers
27 views

How can I change the keyboard shortcuts in Terminal.app for the application commands normally invoked using the unmodified ⇡ and ⇣ keys?

That is, how can I change the keyboard shortcuts for the application commands (I say application commands in an attempt to avoid confusion with the use of the term "command" in the shell command ...
2
votes
0answers
18 views

How to access GPS data from command line on jailbroken iPhone

Are there any binaries available via the command line to get information from the GPS on a jail broken iPhone? I've searched through Cydia and haven't found anything, but I wouldn't imagine this ...
1
vote
0answers
210 views

Install multiple different versions of Xcode

I am on Yosemite and trying to compile a software package using g++. Compiling this particular package has previously worked on Mountain Lion under Xcode 4.6.3, but now I have Xcode 6.1.1, and the ...
0
votes
0answers
45 views

How to adjust a desktop picture through the command line (terminal)?

So after some research, I came along this wonderful little gem for setting a desktop background through the command line. osascript tell application "Finder" set desktop picture to POSIX file ...
2
votes
1answer
21 views

From the command-line, how can I set all accounts to Available in all Messages.app

Is there a scriptable way from the terminal I can tell Messages.app to take all my accounts online?
0
votes
1answer
73 views

How to repair and/or reinstall Homebrew safely?

I am trying to repair Homebrew. I recently tried to reinstall it but when I typed "brew doctor" My output was: shell-init: error retrieving current directory: getcwd: cannot access parent ...
3
votes
1answer
46 views

Osascript Compile Application

Is there a way to compile an an applescript from the command line similar to the following.
0
votes
1answer
29 views

Recursive set creation date of pictures and videos based on filename

I have a folder structure of thousands of pictures and videos. They are all exported and therefore have the same creation date, time. I would like to set the creation date for all the files according ...
1
vote
1answer
47 views

tmux hangs when re-attaching session after logout

Since Yosemite, my tmux, which I installed via MacPorts, "hangs" when I re-attach it after my user has logged out and logged in again. I.e. it cannot start new processes, like a new command line. The ...
1
vote
2answers
36 views

find -printf work around

I'm trying to use a script to call compare file size. Unfortunately the version of find on my mac does not support the -printf switch. Any suggestions?
1
vote
0answers
22 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 ...
0
votes
0answers
62 views

Missing hard disk space

I'm trying to figure out where my missing hard disk space is going. I'm using du and df from the command line and there seems to be a clear discrepancy. So here's the du output: $ sudo du -h -d 1 / ...
0
votes
1answer
59 views

Can I copy a file to iCloud drive from the command line?

I'd like to write a script to backup some files to my iCloud drive. The drive shows up in the Finder, but I don't see it from the command line. Is there a way to do something like: cp mystuff.tgz ...
2
votes
3answers
141 views

Why are my command line utilities running so slowly on my Mac?

I have just noticed that command line utilities such as ls (/bin/ls), touch (/usr/bin/touch), cat (/bin/cat), etc. are very slow when I run them from Terminal or iTerm on my MacBook. For example: ...
0
votes
0answers
49 views

Urxvt on homebrew ignoring certain .Xdefaults and .Xresources settings

I have a .Xdefaults and a .Xresources that I use on my Linux setups that I want to also use on my OSX setup. However, the Urxvt I installed on homebrew is not picking up certain settings from both ...
1
vote
2answers
64 views

Batch repack of mkv files

Can anyone tell me how to batch repack a bunch of mkv files to mp4 keeping the same file names using the Mac command line.
0
votes
0answers
17 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 ...
0
votes
1answer
39 views

AppleScript from Terminal unrar command

I would like to know if it's possible to make an AppleScript of the following terminal command(s). cd unrar e -r -o- *.rar && find ./ -name “*.r*” -delete Also, I would like to know if it's ...
0
votes
2answers
86 views

Can't install WordGrinder on Yosemite

Recently, I have been trying to install WordGrinder on Yosemite. First I tried getting the latest tar packages from the developers' website and using them, but I ran into some library linking errors ...
0
votes
1answer
41 views

Can I set Show Library Folder via defaults from command line?

Is there anyway to activate the Show Library Folder option from the command line? I know that I can archive it with the command chflags nohidden ~/Library', but for several reasons I would prefer a ...
3
votes
2answers
112 views

How to convert a DVD to ISO?

On Mac OSX 10.9, how do you convert a DVD into an ISO that I can use with players such as VLC. I wish to achieve this without buying a program. Steps I have tried: Downloading Mac app Burn. It ...
0
votes
1answer
37 views

mdfind piped to automator?

I have an Automator app called convert2xlsx.app that takes file inputs and runs the Convert Format of Excel Files action to turn .xls files into .xlsx files. I can call it from the command line for ...
1
vote
0answers
26 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: ...
0
votes
1answer
56 views

Terminal stuck at error won't accept any commands.

I was trying to install CLI package from github but I messed up during the process and ended up getting this error. It is persistent and won't go away. Terminal wont accept any commands like mkdir, ...
2
votes
1answer
72 views

Time Machine progress from the command line

The Time Machine control panel gives information on in-progress backups. For example Is there a way to get the information from the command line?
2
votes
1answer
179 views

Displaying calendar events as text, in the terminal

Using Yosemite, is there a way to display events from my calendar in the command line? I'm aware of the stock calendars apple supplies for things like holidays and such, /usr/share/calendar/ and the ...
1
vote
1answer
51 views

Check brew and brew-cask for valid package names

I have a iMac and Macbook for work and another set for home. I end up getting a new one every couple of years so I end up re-setting up everything atleast couple of times a year. So I wrote a script ...
0
votes
0answers
37 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
4
votes
1answer
59 views

Is there a way to put switches at the end when using OS X command-line?

For example: rm long/path/to/some/dir -r instead of: rm -r long/path/to/some/dir Is it possible to make it work like that, as in GNU command line utils? TIA, Karol
13
votes
2answers
604 views

Can I call a phone number from the Terminal?

In Yosemite, is there a way to start a phone call from the command-line aka Terminal? Something like: call +316123456789