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)

4
votes
1answer
230 views

How do I monitor the total physical and virtual memory usage of a process and all of its descendants?

From the command line, how would I get the total physical and virtual memory usage of a process and all of its descendants (not just 1st-level children)? This is useful when you want to monitor the ...
3
votes
1answer
981 views

How can I use RSVG with ImageMagick?

I'd like to use the RSVG for SVG processing in ImageMagick (the included library is fairly incomplete). RSVG is a supported delegate but needs to be installed separately. I've installed librsvg and ...
2
votes
1answer
43 views

Equivalent of Ubuntu’s write-mime-multipart?

I would like to generate a multipart mime-encoded document for use as user data on EC2 instances. On Ubuntu, one is supposed to use write-mime-multipart to do this, as per these instructions. Does ...
2
votes
1answer
85 views

How can I wipe an encrypted volume when the password is forgotten?

I have encrypted disk volume that is in the way and the passphrase is gone. How can I erase the contents and reuse the disk space?
1
vote
1answer
22 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 ...
1
vote
1answer
29 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 ...
1
vote
1answer
12 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. ...
1
vote
1answer
357 views

brew cask: howto uninstall an Application

I tried, while I am in /opt/homebrew-cask/Caskroom $ for i in *; do brew cask uninstall $i; done Error: appcleaner is not installed Error: avidemux is not installed Error: eclipse-ide is not ...
1
vote
1answer
480 views

Opening new Terminal.app window/tab with a certain profile from command-line or AppleScript?

When I login to my Mac, I want to automatically open a new Terminal.app window with a certain profile, say Monitor, that has a startup command and several appearance settings. I thought it would be ...
3
votes
0answers
33 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 ...
2
votes
0answers
30 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
49 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
50 views

Why is Terminal.app corrupting my tcsh history?

I've had an ongoing problem that appears to be specific to OS X and Terminal.app: periodically, I get garbage in my tcsh history that looks like this: ^[[1m^[[4mcomputername:~/Code/emacs-source ( ...
2
votes
0answers
54 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
309 views

How to execute a Parallels Windows application with command line parameters from Mac?

I am trying to call Beyond Compare Windows app to perform a file compre directly from Mac but I am block with command line argument passing. You can call Windows applications from the OS X command ...
2
votes
0answers
97 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
4k views

How do I force a partition and format on a USB key in OS X Mountain Lion Disk Utility or from CLI diskutil?

I have a brand new Memorex TravelDrive 64GB USB disk which is being troublesome. It's formatted FAT16 on MBR, which is not so nice, and I'd like to put it on HFS+. I've tried to do this through ...
1
vote
0answers
15 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 ...
1
vote
0answers
37 views

Terminal speed up doesn't accept command line arguments from outside source?

From a previous suggestion I changed terminals startup command from default to '/usr/bin/bash' which I created as a link to '/bin/bash' which stops terminal from login in every time I open a tab ...
1
vote
0answers
20 views

SIDO Error: unbound variable: voice_kal_diphone, to generate prompt using festival

I have tried to generate the prompts and their label files with the following command The to synthesize the prompts festival -b festVox/diphlist.scm festVox/us_schema '(diphone-gen-waves “prompt-wav” ...
1
vote
0answers
49 views

What are the command(s) to script a daily time sync?

I'm experiencing clock drift on my Mac Mini of 1-2 minutes every day. Like questioner here, I get relief if I open Date & Time from preferences every day or two. It doesn't stop the drift, just ...
1
vote
0answers
82 views

Building mysql with readline instead of editline

I'd really like to be able to use readline instead of editline with the mysql client, but I can't find out how to do this. The bottled mysql that brew installs by default for mavericks is using ...
1
vote
0answers
65 views

Terminal wraps at 80 chars even if window is wider

Problem description If I increase the width of a Terminal version 2.3 (309) window, and then use less (or some command invoking less, like man) in that window, I often get garbled output, since the ...
1
vote
0answers
31 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 ...
1
vote
0answers
45 views

RMBP 2013 and forcing windowed games in Low Resolution Mode

Is it possible to launch a program without an associated .app bundle with the Open in Low Resolution mode activated? I am talking about ~/Library/Application\ Support/Steam/SteamApps/common/dota\ 2\ ...
1
vote
0answers
39 views

Command-line cloud file backup?

Is there a free cloud file server for personal files with shell commands like Unix ls, cp etc. ? Along the lines cloud ls [-options] pattern cloud cp-up pattern cloud cp-down pattern My ideal would ...
1
vote
0answers
49 views

Is there another way apart from screencapture to take a screenshot of a background window?

I'd like to take a screenshot of a background window given its title. I know this can be made with screencapture -l idwindow output but unluckily I can't use this method because I'm on a 10.5.8 ...
1
vote
0answers
124 views

How to install Writer2LaTeX in command line

This is the app I want to install, in ubuntu it was done automatically, but somehow in Mac it seems that I have to install manually. Writer2LaTeX http://writer2latex.sourceforge.net/ In the ...
1
vote
0answers
228 views

Resource efficient way to monitor file change and execute shell scripts on change

I know at least three ways to monitor a folder/file for changes and execute a shell script on change. First, use "Folder Actions" of Automator Second, the launchd.plist approach but it seems the ...
1
vote
0answers
202 views

Signals sent to command-line programs when exiting terminal.app

When using tmux, if I CMD-W, or otherwise quite out of terminal, my tmux session persists, as it should. However, it still lists itself as "attached", whereas on other platforms, (e.g. Ubuntu) when ...
1
vote
0answers
737 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 ...
0
votes
0answers
7 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 ...
0
votes
0answers
22 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 ...
0
votes
0answers
25 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, ...
0
votes
0answers
30 views

open command could not be found

Where can I find 'open' command?(OS X 10.9.3) I think there may be some issues in my environment or I may remove this tool by mistake. ➜ ~ open zsh: command not found: open ➜ ~ which open open ...
0
votes
0answers
39 views

How can I export a single private key in OSX with the command line?

I need to export a identity from my OS X Keychain with the command line. With security I can only export all identities as a single p12, but I need to export just one (I want to use it with Xtify) I ...
0
votes
0answers
29 views

Way to bypass USB lockdown from the ProfileManager via command line?

As I manage a few MacBooks in a company we enforce security policies by Profile Manager. One of those policies is blocking USB ports. We have a group of people that we allow to use USB. It works well, ...
0
votes
0answers
65 views

GNU Radio Companion Osmosdr block

When using macports to install gnurado the build stalls and brings my MacBook Air to a snail's pace.I am running osx 10.6.8. I have a .profile file in ~/ but I have a feeling it has to do with ...
0
votes
0answers
17 views

How do I make the batch command work correctly under under Darwin?

Under Linux, the command batch < script puts the script into a queue, and scripts (jobs) are started whenever the load average drops below a set value, usually 1.5. There's also a delay after any ...
0
votes
0answers
16 views

Top command not outputting all information

I'm trying to put together a script which collects the information produced by the top command relating to the system rather than the processes (i.e. the top few lines). When viewing in top binary ...
0
votes
0answers
23 views

How to automate iTunes to iOS File Sharing

Connect an iPad to a Mac via USB and iTunes allows you to copy arbitrary files to apps that support it. How can I automate that? Neither AppleScript nor Automator can do it. Is there a way on the ...
0
votes
0answers
23 views

Automatically copy PDF.plugin to Chromium.app

I'm using Chromatic.app to update my Chromium.app recently. I'd like to use Chrome.app's PDF.plugin in Chromium.app. Therefore I need to copy PDF.plugin to the following directory: ...
0
votes
0answers
38 views

Change all birthday events to occur yearly in iCal?

I want to make all birthday events in my iCal repeat yearly(some of them were not added with "repeat yearly" set). I am doing them on a event by event basis but that is too painful. Is there a way to ...
0
votes
0answers
96 views

Display w3m images in iTerm2

I am currently using iTerm2, tmux, and w3m. I would like w3m to display images, as I know it is possible in xterm. Is this possible in OS X using iTerm?
0
votes
0answers
154 views

I want to mount a virtual CD-RW drive

I want to export (burn to CD) some media I own and have in iTunes. However, I do not want to burn it to a physical CD. I want to instead burn it to a virtual CD. A virtual CD is something that appears ...
0
votes
0answers
273 views

since Mavericks upgrade: LSOpenURLsWithRole() failed for the application $APP error -10810 for the file $PATH_FILE

I open via CLI a VLC player which plays movie. open -a vlc samantha-jane_HD.mp4 LSOpenURLsWithRole() failed for the application /Applications/VLC.app with error -10810 for the file ...
0
votes
0answers
70 views

How to control application calls / requests for date / time

I'm wondering if it is possible to see how and when applications access the date and / or time given by the computer. If it is possible to see, is it possible to control it? That is, is it possible to ...
0
votes
0answers
33 views

Why nc doesn't response even if the “w” option set?

For some servers: nc -w 1 -z x.x.x.x 22 doesn't work. It has no response, but is looking like very busy: only ctrl + C can help. So -w 1 seems to be a useless option, to specify the timeout. Does ...
0
votes
0answers
291 views

curl installed but ec2 api could not find

I am trying to get the ec2 command-line api work on my OS X 10.7.4 without much success. The commands are complaining about curl but it looks like curl is installed and is available. See below: ...
0
votes
0answers
2k views

How to remove group membership from user using the Lion Terminal?

How to remove a self created daemon user named '_denyhosts' from group 1025(workgroup), 403(com.apple.sharepoint.group.2), 404(com.apple.sharepoint.group.3) and 405(com.apple.sharepoint.group.4) using ...