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
1answer
16 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 ...
1
vote
0answers
34 views

Aggressize standard stream buffering in latest Command Line Tools (6.1)

I just upgraded my "Command Line Tools" via App Store.app's update process to Version 6.1. It seemed to install just fine, but a lot of commonly used command line tools now have much more aggressive ...
1
vote
1answer
37 views

What is the relationship between Xcode and Xcode command line tools

When I install Xcode from App Store, I can compile programs in Xcode as well as command line too. Several command line utilities like clang, make and git all become available when Xcode.app is ...
1
vote
0answers
21 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, ...
1
vote
1answer
33 views

xemacs: Bad CPU type in executable

OK. So I worked around this error: /sw/bin/xemacs: Bad CPU type in executable. but I don't understand why what I did worked and am curious. All I did was replace /sw with what should have been an ...
0
votes
0answers
76 views

Is it possible to install all Kali hacking tools in Mac [closed]

How can i install these below listed tools in mac. I guess these are command line tools. Can i install them using Homebrew. I can install them in Ubuntu or in other linux distro using terminal. Is it ...
2
votes
1answer
58 views

How to repair Homebrew permissions after installing as root?

I run brew as root, now it's defunct. No updates anymore. How to fix? $ brew update && brew upgrade error: Unable to append to .git/logs/HEAD: Permission denied error: Unable to append to ...
0
votes
1answer
35 views

How can I update my version of `unzip` to version 6.00 or higher?

Its a common problem that, when unzipping (read: 'open by double-click'), some .zip files result in a similar sized .cpgz file. But you expected an unzipped file or folder instead. The default unzip ...
0
votes
0answers
24 views

Using spell checker on plain text files from the command line / in scripts

I see that libhunspell-x.y.z.dylib is installed on my mac (macos 10.9.5) but I did not find any way to invoke the spell checker from the command line, as in % spell file.txt Indeed, man -k spell ...
0
votes
1answer
17 views

Change header of all text files in directory in commandline

I have tons of *.csv measurement files with following header: Start time: Thu Oct 09 15:46:16 CST 2014 Trend type: Average Wavelength over [259.09, 259.09] Trend offset: None ...
1
vote
0answers
11 views

Install CA from Command Line?

I run a small PKI at my house. There's not much too it - a CA, a few servers and a client certificate on occasion. I'm looking for a way to install my CA on my iOS devices from the command line. ...
0
votes
0answers
25 views

Disable Safari plug-in management using the command line

Safari 6.1 introduces a feature called "plug-in management". In our organization, I'd like to disable this feature, or set all plug-ins to Always Allow for all websites. I need to do this using the ...
3
votes
1answer
58 views

Is there a command line utility to display a string or an image in the status bar in Mavericks?

Basically I want to issue a command in a bash script or an Apple Script and see some string (or icon) in the status bar aka "where the clock is". Something similar to osascript but for the status ...
3
votes
2answers
29 views

See live report of process's status

Under Linux, I can use top to see a live report of what processes are running. An important field I use is the Process Status field, which shows whether a process is running, a zombie, sleeping, etc. ...
0
votes
0answers
32 views

Getting volume information from command line

How do you get the information available by right-click "Get info" via the command line using Terminal. In particular I want the "Created" and "Used" value for DVD volumes. Bonus question: Is there ...
0
votes
0answers
9 views

Displaying notifications from a CLI app [migrated]

I'm new to the Apple development ecosystem. I thought I'd start with writing CLI apps in Swift (and work my way towards OS X and iOS). Although there is no GUI involved, I want to display ...
1
vote
1answer
33 views

From the command line, how do I tell if a particular VPN connection is up?

Suppose that I have multiple VPN connections configured in System Preferences/Network. How do I tell if a particular one (identified by the service name in System Preferences/Network) is up, on the ...
1
vote
1answer
64 views

Disable line wrapping and horizontal scrolling for output in iTerm

I want to disable the interactive line wrapping that iterm does in my terminal application. I can run $ python -c 'print "\x1b[?7l"' to disable line wrapping on output, so long lines like $ ...
3
votes
0answers
229 views

Is it possible to dock a detached Web Inspector in Safari 8? [closed]

I'm running Yosemite Public Beta 2. I detached the web inspector and cannot find a way to dock it again. The usual dock/detach button isn't there, and I couldn't find any help elsewhere on the ...
0
votes
1answer
73 views

Install shuf on OS X?

Ubuntu Linux has a great tool called shuf, which works like head except that it gives you ten random lines. I couldn't find it on Homebrew. What is the simplest way of installing it on OS X?
1
vote
0answers
41 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? ...
0
votes
1answer
34 views

broke my python easy_install how to fix?

Any idea how to fix: -bash: /usr/bin/easy_install: No such file or directory I kind of deleted it by accident before I realized that being behind a proxy was my issue not easy_install
3
votes
1answer
29 views

characters stick at the beginning of CLI

When I press arrow up to search through the command history, some characters always remain at the beginning of the command line. Does anyone know what's going on ? How can I fix it? for example, I ...
0
votes
0answers
48 views

Apple installer issue in terminal where -target keeps saying; error cannot find Volume

I am trying to use the Apple Installer commands to install a package and the output is that it was successful, however, the end result is that nothing actually happens meaning the package never gets ...
2
votes
2answers
43 views

Terminal window title rapidly changes when first opening

When I open a fresh terminal window, the title at the top has this format: [house icon][username]-[command]-[terminal size] The command portion of the title initially says login, then it very quickly ...
1
vote
1answer
48 views

How to get the domain name on the command line

I know this is a simple question, but I can't recall a method of doing it. I wrote a service using automator to copy the public URL of a file in my Sites folder. I wrote this script: sed -e ...
2
votes
1answer
17 views

Piping into printf

In Terminal, I'm trying to replace MY_SUBJECT and BODY_OF_EMAIL from the command below: printf "From: Sender Name <sender@domain.com>\nTo: recipient@domain.com\nSubject: ...
0
votes
1answer
46 views

I added my username to /etc/sudoers but using sudo still asks for password

I entered my username in the sudoers file, but when using sudo in scritps, it still asks for the password. This is my sudoers file: ~: ls -al /etc/sudoers -r--r----- 1 root wheel 1297 Aug 14 ...
0
votes
0answers
32 views

Which Unix command-line utilities besides /usr/bin/fgrep have severe bugs in 10.8?

I just got stung by /usr/bin/fgrep --file=7000.words matching nothing, on 10.8.3, version: fgrep (BSD grep) 2.5.1-FreeBSD. Gnu grep works fine with a file of 57000 words. Is there a list of other ...
1
vote
1answer
98 views

How to get a fall-through behavior in case statements in bash v3?

I just tested the following syntax on Linux: case "$OSTYPE" in linux-gnu*) ;;& linux*) echo $OSTYPE; ;; esac case "$OSTYPE" in linux-gnu*) ;& linux*) echo $OSTYPE; ;; esac which works ...
1
vote
0answers
36 views

Restoring original files from the trash by aliases

Someday in the future, (definitely not today) I might find myself in the following situation and be in need of assistance: Lets say I was trying to clean up my desktop and tried to move many files ...
0
votes
0answers
17 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. $ ...
0
votes
0answers
17 views

How to convert relative to absolute path? [duplicate]

As per this answer, the solution in most flavors of *nix is readlink -f /relative/path But the MacOS (I use 10.9.2) implementation of readlink does not support the -f option. How do I convert a ...
0
votes
1answer
21 views

Copy text from command line as formatted text

So I have a script that outputs this <pre style="background:#f1f1f1;color:#000;font-weight:bold;">echo 'Hello World';</pre> What I would like to do it copy it to the clipboard as rich ...
1
vote
0answers
39 views

How does Activity Monitor get the URLs related to a “Safari Web Content” process?

Does anyone know how Activity Monitor.app gets the list of URLs that are related to a Safari Web Content process? Those processes show up as com.apple.WebKit.WebContent in ps output.
1
vote
1answer
75 views

How to run apple and custom git side-by-side

I have installed the Apple Developer Tools 5 on Mac OS X 10.9.4 which comes with Git: git version 1.8.5.2 (Apple Git-48) I also have installed Git 2.0.1 using the Mac OS X installer. How do I best ...
0
votes
1answer
83 views

How to get rid of emoji (emoticons) in Terminal.app (OS X 10.9)

I am experimenting with Twitter API. I now have emoji characters in Terminal.app. I don't know how to handle that. How to get rid of that or use it well? see screenshot
0
votes
1answer
53 views

How to download images from an xml feed using terminal?

How can I download png images from an xml feed that looks the following way? <ListBucketResult xmlns="http://url1.com"> <Name>imagesToUse</Name> <Prefix/> <Marker/> ...
1
vote
1answer
40 views

Command line tools to replace bytes in a file

I need to write a script that patches a few bytes at a particular offset in a binary file. I know of textual tools for this task (sed, though I find it utterly hard to use) but can't find one for ...
0
votes
0answers
31 views

Changing display resolution on Retina machines while in Command Line Mode

I frequently prefer to boot into the command line mode (CMD + S on boot) instead of booting to the normal GUI-imposed version. I do most of my work in the terminal, so it's nice to save some time and ...
1
vote
0answers
20 views

How to prevent TextEdit from commandline to cause Developer Unknown warning?

Is there any way (other than disabling Gatekeeper through preferences) to allow TextEdit to open my shell-script from a command-line? I'm more than ok with a dialog warning me, but the current dialog ...
3
votes
1answer
303 views

-d option for split is illegal on OS X 10.9

I have bash script that works on Ubuntu but for OS X 10.9 i get the error for split command: split -b 1000000 -a 3 -d $F $F && rm $F || { echo "Error: 'split' command not installed" ; exit 1 ...
1
vote
1answer
49 views

Using dd on video DVDs gets permission denied after about 700MB

I bought three movies on DVD on eBay. I am trying to make .iso backups onto my external hard drive. The first one I tried using Disk Utility, but it only produced a partial copy (without generating ...
0
votes
0answers
39 views

How to record human voice and display as text on command line?

I am looking tool or a script that records human voice and displays as text purely on command line. I am not looking for text to speech, but rather speech to text. I do not want to work at all with ...
2
votes
4answers
98 views

Get Info of a hidden file (to change its default app)

I have a hidden file (.htaccess). When I double click it I would like it to open with a certain app (Sublime Text for this particular file type). In order to set the default app I have to open the ...
1
vote
1answer
89 views

com.apple.quarantine extended attribute gets re-added each time I open the file

I have a file called tasks.taskpaper that I associated with FoldingText. When I open the file, the dialog pops up with text “tasks.taskpaper” may be a script application. It was created by ...
0
votes
0answers
83 views

Having trouble installing apache ant on mac os 10.9

In the terminal when I type 'ant' I get this back: The program 'ant' can be found in the following packages: * ant * ant1.7 Ask your administrator to install one of them How do I, the administrator, ...
6
votes
1answer
79 views

Get ambient light sensor value from ioreg

I'm using the ioreg command line tool to try and read sensor information available on my computer (iMac). Particularly, I'd like to read the current value of the ambient light sensor. So far, I have ...
1
vote
1answer
18 views

Viewing/Changing App paths used by `open -a foo.app …`

When using open -a iTerm.app SOMEPATH from a shell-script or Emacs eshell command, it appears to launch a different instance of iTerm than the one in /Applications/iTerm.app that I'd expect. ...
3
votes
1answer
119 views

open image full screen with “open -a Preview”

Using osx 10.9.3 I would like to write a script that opens images full-screen with preview but I can't seem to find the command line options for the Preview application.