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)

1
vote
0answers
9 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
23 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
46 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
25 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?
1
vote
0answers
16 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
33 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
13 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
35 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
25 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
11 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
127 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
26 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
14 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
46 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
38 views

Osascript Compile Application

Is there a way to compile an an applescript from the command line similar to the following.
0
votes
1answer
26 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
40 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
34 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
21 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
53 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
50 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
126 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
33 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
52 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
33 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
68 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
36 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
93 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
29 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
50 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
66 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
126 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
41 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
32 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
579 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
0
votes
1answer
109 views

Can I launch the File (Save/Open) Dialog from the command line?

Bash and vim's file completion facilities are effective for navigating through a few levels of a directory structure, but can be cumbersome when working with unfamiliar directories. Alternatively, I ...
2
votes
1answer
874 views

/usr/local doesn't exist in fresh install Yosemite

I am trying to install ssh-copy-id, and it wants to be placed in /usr/local/bin/ but when I do cd /usr/local/ it responds with -bash: cd: /usr/local/: No such file or directory Is this ...
1
vote
1answer
71 views

What is the equivalent of netstat -tln on OS X?

What is the equivalent of Linux's netstat -tln on OS X? Options: -l, --listening (Show only listening sockets. (These are omitted by default.) --numeric , -n (Show numerical addresses instead of ...
0
votes
1answer
39 views

Monitor DNS queries by IP

I'm running DNS on a Mac Server V2.4. I want to log all DNS queries made - is there a way of doing this? TCPdump only shows me whats happening at a moment in time and is difficult to read, what other ...
0
votes
1answer
42 views

After Using LP Printer Utility “unable to communicate”

I tried using lp to print to our HPLazerJet P1102w from the command line. Items were added to the queue, as returned by lpq: macbookpro1:~ mikekilmer$ lpq HP_LaserJet_Professional_P_1102w is ready ...
0
votes
3answers
100 views

Command-line tool to check if current user has the desktop?

Is there a way, via the command line, to check if the current user has the desktop? That is, if I run a shell script in a window, I want to be able to tell (in the script) if the user has switched to ...
2
votes
2answers
208 views

Troubleshooting “Unexpected argument” error when running defaults write

Trying to change the default screenshot directory to a specific folder in my google drive, but when I try the following command defaults write com.apple.screencapture location ‘~/Users/tommy\Google ...
2
votes
0answers
38 views

How to fix “You are not allowed to use ”Application“”

How do I fix this message, I am Admin, Mobile. Even if i login to a root account this message still appears. I have iTerm so if any commands need to be inputted to fix this problem I can still do ...
2
votes
1answer
324 views

GCC : Command not found

I'm very new to Mac and right now my operating system is 10.10 Yosemite. I installed XCode and Xcode CLT, gcc came along with it as well. I was asked to change the default compiler to gcc. I went ...
1
vote
2answers
69 views

iTerm - going one word backwards and forwards

Would it be possible to configure iTerm 2 to go backwards and forwards one word through the curent text in the command line using a keyboard shortcut?
0
votes
1answer
42 views

When is a folder not a folder?

I have a "folder" (as it appears from Finder), but I can't cd into it from the terminal. if I ls -la this is what it looks like. -rw-r--r--@ 1 christopher admin 1317440 Oct 17 22:23 Tomcat ...
1
vote
1answer
233 views

How do I open a URL with a custom scheme in Yosemite with cron and open?

I had a cron job that ran every morning at 10:30 to call into our daily status meeting on Go2Meeting. After I upgraded to Yosemite it stopped working, and I figured out that it was because open -g ...