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.
1
vote
2answers
245 views
Creating a wget OSX Service
I want to create a service to copy the URL and subsequently download it via wget.
How would I go about creating an OSX service to wget arbitrary urls from a browser or system wide. I believe it'd be ...
1
vote
3answers
947 views
How do I change GNU Screen's meta-key to Cmd-a?
GNU Screen's default meta-key is Ctrl-a, which is really inconvenient for me because I frequently use Ctrl-a and Ctrl-e to move the cursor to the beginning or end of the line.
I'd prefer to change ...
1
vote
1answer
212 views
How to disable coalescing of log messages in OS X?
I've been using Console to debug some things on my Mac, and I keep seeing --- last message repeated one time --- in the log. Apparently it's not really essential, and you can turn it off on the ...
1
vote
2answers
18 views
Is there a way to set an Application Shortcut in the Keyboard Preference Pane via Terminal?
I'd like to have a bootstrap for my custom keyboard shortcuts to use on multiple machines...
1
vote
0answers
595 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
216 views
Is it possible to download Apple's Command Line Tools for Xcode from the command line?
Background
My job gives me temporary MacBook Pros for travel purposes. I get them with a fresh OS install before I leave, and when I return, they blank the hard drive. The trips usually require some ...
1
vote
0answers
26 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
142 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
1answer
171 views
How do I command Automator to convert the multiple images from PNG to ICNS once at all? (Solved)
I use OS X Mountain 10.8.2.
I used Automator and added AppleScript, copying the command from the old app's developer at the Iconoodle - Convenient ICNS to PNG image conversion (Iconoodle isn't ...
1
vote
0answers
210 views
Is there a OS X equivalent for iproute2?
I am searching a command line tool collection like iproute2 on Linux.
Network Utility is OK, but I would like it on the command line.
1
vote
2answers
68 views
Save and restore data with command line
I will zip a file with a password. Then, I will write a script and ask:
if (have the password saved) {
unzip file
} else {
ask password
save password
unzip file
}
I want the user ...
1
vote
1answer
75 views
Make a file a Stationery pad via command line
Is there a way to set make a file into a Stationery pad from the command line?
You can do it by clicking "Get info" on a file and checking the box, but I would like to do it without clicking.
An ...
1
vote
0answers
156 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
2answers
326 views
Rsync Backup Script
I'm having some issues backing up some data.
Basically, I have FileVault enabled on my Macbook Pro and want to backup a folder I use - however, I don't want to use Time Machine (at work, I have one ...
1
vote
0answers
528 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
2answers
269 views
Executing program through Terminal
I have Sage (math program) and I want to execute it through terminal.
I know I can go to the directory and execute it with -
open Sage.app
But would I really want to do is simply type sage in ...
0
votes
3answers
4k views
Access Applications directory in Terminal
I'm really new to command line and I'm trying to access my Applications directory within Terminal.
By default, I am stuck in my user directory but Applications is a child of the "Macintosh HD".
...
0
votes
2answers
221 views
Force simple UNIX path names for optimal us of command line apps?
I want to force myself to use folder/file names without spaces etc. so I'm 100% certain I can open and run them from the command line.
Some terminal apps which I use frequently hava a hard time ...
0
votes
3answers
254 views
Is there a command to install a dmg
I want to install a dmg file on a remote server. All I have is an ssh access.
Since a DMG is a disk image, I tried to mount it, but mount does not seem to recognize its format.
file says my dmg file ...
0
votes
1answer
261 views
Is there any way to change the output filename for qlmanage?
Is there any way to specify the output filename and directory that qlmanage uses?
We are using qlmanage to convert word documents to HTML, and it writes Preview.html to its temp directory. You can ...
0
votes
1answer
330 views
How to remove xattr com.apple.quarantine from all .webarchive files with that extended attribute?
Spread across multiple file system I have numerous .webarchive files that were saved by OmniWeb. So for example:
sh-3.2$ ls -@ 2012-03-19.webarchive
2012-03-19.webarchive
sh-3.2$ ls -@l ...
0
votes
3answers
188 views
I have lost the prompt on Terminal on my Mac; unable to get commands to work
I was trying to launch a few Java applications using the terminal. The command that I was instructed to launch it with (I was following a guide) was the following:
#!/bin/bash
cd "$( dirname "$0" )"
...
0
votes
1answer
280 views
Backing up iPhoto pictures and folders from the command-line
I'd like to install a new OS X on a MacBook and I'd like to know what needs to be done to backup only the iPhoto pictures. I definitely do not want to backup the entire /Users/Cedric/ directory. All ...
0
votes
1answer
173 views
NAS recommendation [closed]
I'm wondering if anyone can recommend a 4-bay NAS with AFP/TimeMachine support and the ability for me to install s3cmd (a utility for simple S3 syncing).
The reason I ask is simple: just having a ...
0
votes
1answer
511 views
Is it possible to switch from Safe Mode to Normal and back without a reboot?
Since 10.6.3, Apple has decided change the AppleIntelCPUManagement kexts, which leave me stuck with a kernel_task that pegs out at 135-185%, generating a lot of heat.
Anyway, since I doubt anyone has ...
0
votes
1answer
70 views
Why would SetFile be unavailable after upgrading to Mountain Lion?
I have Xcode installed, and have used the SetFile command (installed with Xcode) for some time. I just upgraded to Mountain Lion, though, and find that it is suddenly unavailable. I verified that ...
0
votes
2answers
81 views
PageUp and PageDown keys for Irssi (IRC) in Macbook?
I cannot find the keys on my mackbook. I need them to go page-up and page-down in irssi (IRC). I have tested the tips here but they do not work. They model some different Up/Down, not the traditional ...
0
votes
1answer
56 views
How can I get tab completion back?
In terminal, if I try tab completion in a directory e.g. Movies, instead of the movies beginning with S (if I type S followed by tab, I see SetFile, Splitforks and SystemStarter. I suspect I installed ...
0
votes
1answer
900 views
Is there a Mac OS X equivalent of the Linux iwconfig command?
I'm looking for a command line tool in Mac OS X that performs the equivalent of the iwconfig command in Linux.
Example:
kirkland@x220:~/src/byobu/byobu$ iwconfig wlan0
wlan0 IEEE 802.11abgn ...
0
votes
1answer
829 views
jDownloader-like command line tool or lightweight GUI App?
I use jDownloader which works great, but takes a lot of time to load and surprisingly takes a lot of time also to start and stop downloads.
I'd like to have a similar functionality* but with a ...
0
votes
2answers
241 views
Run java bundled in .app from command-line
The question is how do I run some application written in java and bundled into .app package from command-line?
The main purpose of this is to run an application under JDK7. So I will start it with ...
0
votes
1answer
117 views
How do I list the plugged memory sticks on Mac OS
How can I list all the currently memory devices on MacOS X?
I need to do this by command, because I have an Java application that needs this information.
Thanks
0
votes
2answers
75 views
Regarding groff - where is the config file and will this work?
I've been reading Terminal Tips and Tricks For Mac OS X when I came across this.
bman () {
gunzip < `man -w $@` | groff -Thtml -man | bcat
}
Apparently I should be able to view man pages ...
0
votes
2answers
397 views
CLI - how can I specify a screen saver with the following options?
Through the CLI, I would like to select the flurry screen saver set to activate in 15 minutes and show the clock.
0
votes
1answer
201 views
Printopia (AirPrint): turn it on/off via command line?
I love Printopia - this allows my iDevices to print to a printer attached to my Mac. The problem is I usually don't leave it on all the time. Whenever I want to print from my phone, I'd turn it on via ...
0
votes
2answers
1k views
Setting a custom log
I have to get all the chromium and firefox info logs out of /var/log/system.log and into a nice quiet /var/log/{chromium,firefox}.log.
However I can neither recall or find how to set that in ...
0
votes
2answers
20 views
Determining currently used NIC on CLI
I do a lot of work on Virtual Machines, and have several scripts to help me configure them quickly. I could fully automate spinning up a headless VM, except that I need to know the IP of my host ...
0
votes
1answer
100 views
Are the OSX Mavericks tags visible from the command line? [closed]
For example, suppose I have a directory structure such as
/Users
/tlehman
/Math
algebraic_varieties.tex [tagged: Math, Documentation]
projective_geometry.pdf ...
0
votes
2answers
270 views
How to set alternatives in 10.8?
On Linux you can use update-alternative to change the version of a command.
Which command in OS X (10.8) will switch the alternative of the current command?
0
votes
1answer
56 views
Bug in 'file' command on 10.5.8? (Or am I doin' it wrong?)
On my OS X 10.5.8 system, the man page for 'file' says:
-h, --no-dereference
option causes symlinks not to be followed (on systems that support symbolic
links). This is the default if ...
0
votes
1answer
79 views
When I close the lid and open it later in the day, will command line programs resume?
I've been running a python script from the command line that's inserting data in a database for a couple of hours now. It will take at least half a day more before it's finished. However, I want to ...
0
votes
1answer
221 views
Add Chrome to dock with parameters via Automator with chrome icon
I need to have started Chrome without the build in Flash
via console you add the Parameters
--disable-internal-flash
which works fine, now i would like to have a Dock Icon which passes this ...
0
votes
2answers
131 views
How to set iChat status from the command line?
I'm trying to sync my Last.FM last played track with my iChat status... right from the command line. I've come this far:
curl -s http://ws.audioscrobbler.com/1.0/user/Da3X/recenttracks.rss |
grep ...
0
votes
2answers
200 views
command line ps has stopped working correctly after an update
I use to be able to run this ps command from the terminal:
ps -u whoami -o pid,rss,command
But recently the RSS size returned are all 0!
ps -u `whoami` -o pid,rss,command
158 0 ...
0
votes
3answers
6k views
How to send text with telnet in Terminal?
I would like to send some text to a port on my machine using telnet in the Mac OS X Terminal.
I start telnet using:
telnet localhost 8080
Then I type some text. Is that text send automatically or ...
0
votes
0answers
20 views
how to automate preventing doubleapple files creation when tarring directories (Snow Leopard)? [duplicate]
Edit 3:
There are a few questions on why doubleapple files are created when tarring directories and few answers are given that give the reason and a solution from preventing it to happen.
My ...
0
votes
1answer
110 views
How to enable Maven autocomplete on Mac OS X command-line?
When using Maven (mvn) on OS X Terminal, how can I get tab-completion for Maven goals, plugin names, etc? Things like this:
mvn pa [TAB] -> mvn package
mvn je [TAB][TAB] -> mvn jetty:run
0
votes
0answers
85 views
GDB (GNU Debugger) with TUI (Text User Interface, or 'layout' command) on Maountain Lion
Anyone who has tried GDB's nifty layout interface must be impressed by its convenience. Unfortunately, however, Apple developers never realized this, so Xcode, even with its optional command line tool ...
0
votes
0answers
22 views
hdiutil(1) and I/O errors: how to debug with “ifd-ignore-io-errors” = 0;
Observation
Debug output from hdiutil (example) typically includes
"ifd-ignore-io-errors" = 1;
In that context, I guess the 1 means that I/O errors are ignored.
The question
If that guess is ...
0
votes
1answer
267 views
How do I install handbrake cli?
I've downloaded the Handbrake CLI. What's the best place to install a command line app on my Mac?

