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)

2
votes
0answers
363 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 ...
1
vote
1answer
74 views

How do I find links for iTunes U Videos to download using the 'resume' feature in curl

I have a flaky internet connection and I was trying to download some course videos on iTunes U. Three attempts to download 800 MB files failed because the connection was reset. So I'm now trying to ...
0
votes
1answer
355 views

Why did Apple Decide not to install Command Line Tools as default? [closed]

Why did Apple Decide not to install Command Line Tools which now have to be installed through xcode?
1
vote
2answers
554 views

How to make a command line executable an application?

I have a command line executable (specifically JMeter), which opens a GUI application when launched from the terminal. However, I would like to create a link to it that would wrap it up to become a ...
0
votes
1answer
3k views

Mac OS X Terminal: -bash: $: command not found

While trying to install pagekite on OS X Snow Leopard using the following command: $ pagekite.py --signup I got: -bash: $: command not found I am a noob with the terminal but after reading a bit ...
33
votes
2answers
730 views

Where should I store command line applications?

When I download command line applications they are located in my ~/Downloads/ directory. But I feel this is wrong place to have a command line application located. Where in the Mac OS X filesystem ...
0
votes
1answer
253 views

Changing the background image in all spaces

I'm running Max OSX Mountain Lion, 10.8.4. I have tried several solutions to change the background image in every space/desktop, but can only get one. I have tried this shell script, have tried using ...
1
vote
1answer
1k views

How to I display the current DNS servers from the command line under OS X?

I want to display the DNS serververs that are used by the current network setup on OS X, from the command line.
0
votes
2answers
582 views

Script or workflow to modify find and replace text in clipboard

I need give unique names to many, many files as part of my job. I download dozens of PDFs from a research database which all come with the same name (date of download). I have to open the file, select ...
1
vote
2answers
3k views

How to get Apple Command Line Developer Tools without App Store?

I got a mid-2013 MacBook Air for UNIX development. I'm disappointed that it came with no C/C++ compilers and with no make, which are apparently part of Apple Command Line Developer Tools, which is ...
0
votes
0answers
34 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 ...
1
vote
2answers
112 views

Terminal path bar style for prompt

I recently saw this in a demonstration online in someones Terminal: Notice the path-bar-like style of the prompt, any ideas how you can get that? Some kind of customisation I'd assume?
0
votes
1answer
262 views

Changing OS X command line language

On Debian I managed to change it using dpkg and now UNIX commands, manual pages and supported packages are in my native language. Is there a way to do this also on OS X? I already have the locales set ...
0
votes
2answers
278 views

Visually distinguish different lines (for long wrapped lines) in iTerm2 / Terminal

I'm using an application that outputs very long lines. It's fine - it means things aren't cut off at 80 characters - but the default Terminal and iTerm2 config makes it hard to distinguish between: ...
2
votes
1answer
175 views

UTF8 filenames and shell utilities

Try the next commands from the terminal: touch á.txt $ ls á.txt find . -name á.txt -print prints nothing. My Terminal.app settings are utf8 - see here: The question: How to achieve to work ...
1
vote
1answer
495 views

Disable loopback interface lo0 on 10.8.4?

For testing purposes (testing raw network speed over a number of cables) i have equippped my Mac Book pro with a Thunderbolt to Gigabit Ethernet Adapter besides the built-in gigabit ethernet ...
3
votes
1answer
5k views

Update Xcode from 4.6.1 to 4.6.3 for Homebrew

I have installed Xode downloading the DMG (not from the Mac App Store). Now each time I run brew doctor it says: Your Xcode (4.6.1) is outdated Please install Xcode 4.6.3. But In App Store > ...
1
vote
2answers
724 views

How to properly register a file extension on mac so it will also work by running open from the command line?

I have the following problem, I registered a file extension to be opened by a Mac Application by clicking on the file in Finder and selecting to always use the target application to open the files. ...
0
votes
1answer
58 views

Run a program without networking?

Is there a way to run a program on OS X (e.g., from the command line) but without letting it see the network? I can turn off and disconnect all networking, but then all my other processes will be ...
1
vote
1answer
2k views

Server certificates are not properly validated by subversion/openssl

I noticed that the svn cli fails to validate https certificates and always ask for manual validation using the certificate fingerprint: mbp:~ user$ svn co https://svn.mysite.com/svn/testrepo Error ...
1
vote
1answer
79 views

prevent doubleapple files creation when tarring directories (Snow Leopard)

I'm looking how to prevent tar from saving or creating .AppleDouble shadow files and preferably do it in an automated manner. There are a few questions asking why this happens, but I want a solution ...
0
votes
2answers
34 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 ...
6
votes
3answers
2k views

Are the OSX Mavericks tags visible from the command line?

For example, suppose I have a directory structure such as /Users /tlehman /Math algebraic_varieties.tex [tagged: Math, Documentation] projective_geometry.pdf ...
7
votes
2answers
11k views

how to reinstall xcode command-line tools?

I had serious problems from two versions of Xcode on the same machine. I removed all Xcode app instances & many other non-System 'xcode'-related files, then reinstalled the app (4.6.2), fixing my ...
8
votes
6answers
675 views

Where can I find a comprehensive and detailed technical software manual for OS X?

Are there books written for OS X (particularly the most current version) like the hundreds of thousands written for Unix? I'd like to know about the command-line utilities and the locations of system ...
3
votes
1answer
271 views

List of GNU packages for homebrew

My team is working with Mountain Lion MacBook Pros, and we're using the GNU CLI tools, like wget and watch, intensively. Whenever a new team member joins us, we tell the new hire to install homebrew ...
4
votes
1answer
713 views

How do I prevent the permissions denied message from being displayed when I do a find command?

I'm trying to run a find command, aka: find / -name "some_file" -print and my results are full of permission denied messages: find: /.DocumentRevisions-V100: Permission denied How do I prevent ...
1
vote
2answers
179 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...
2
votes
3answers
3k views

Change file association in terminal?

Is there a method for associating file types with applications via terminal? I thought ~/Library/Preferences/com.apple.launchservices.plist might do it, and I also have seen: Why is a command line ...
5
votes
2answers
824 views

Is it possible to get the full suite of unix options for the command line tools on OS X?

I follow Unix Tool Tip on Twitter and it is interesting that many of the tips that are posted are not available on OS X. For example: cp - u will only copy files that don't exist, or are newer ...
6
votes
1answer
1k views

Adding a song file to iTunes via the command line without playing the file

I want to add song files to iTunes via the command line. open -a iTunes -g song.mp3 does exactly this. - However it starts playing the song, too. Any way to avoid this?
2
votes
1answer
406 views

Play .ogg on command line

How can I play a .ogg music file on the command line? On Linux I can use ogg123, but what about on Mac?
1
vote
2answers
1k 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
1
vote
1answer
443 views

Where do I find the full man page for afplay

In Terminal afplay -h shows full help text but the man page shows hardly nothing. Is there any way to get a longer help page for man afplay? I never use Terminal and it would be much easier if i ...
0
votes
2answers
626 views

Temporarily disable Notification Center in Mountain Lion from command line?

I've been trying to create a script to disable/enable the Notification Center, even if it's temporary. It should do the same as manually sliding the Notification Center, scrolling up, and toggling the ...
1
vote
2answers
562 views

Converting Audio to AC-3 using afconvert?

I'm trying to use afconvert to convert an audio file to AC-3 format. It's 5.1 audio, having already been converted from DTS to WAV (using ffmpeg, since afconvert doesn't seem to deal with DTS). As ...
4
votes
1answer
4k 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 ...
1
vote
3answers
506 views

Files synced by Synk Pro have wrong owner on both synchronized Macs – how can I fix it?

I sync some folders within my Home folder between two Macs (running Lion and Mountain Lion) using Synk Pro, a commercial live file sync application. I have the same account name on both computers. ...
1
vote
1answer
477 views

What does it mean when a process is surrounded by parens in `ps`?

I sometimes try to kill -9 Finder.app when it's misbehaving and I'm in a Terminal. This normally works but every once in awhile it leaves behind the pid, even when run with sudo, and the COMMAND ...
0
votes
1answer
481 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 ...
3
votes
1answer
267 views

Using the apple wireless keyboard with an iPad with PC/Mac-like keyboard commands

I have jailbroken iPad2 (iOS5.1.1) and an apple wireless bluetooth keyboard that I use for typing on the iPad. Although the keyboard is a joy to use, I can't use it for much else other than typing ...
3
votes
1answer
2k views

Controlling iOS apps via command line

I have jailbroken iPad (iOS5.1.1) with the shell utility installed. I'd like to be able to launch and control applications via the command line, as I would normally do in Unix or Linux. Say I want to ...
2
votes
3answers
2k views

Find/Unrar/Delete Script

I'm a PC convert, and quite novice when it comes to shell/bash scripting, but I really want to learn/understand more. My need: I need to be able to scan a folder, find any .rar files, extract the ...
6
votes
2answers
678 views

“Airplane Mode” in OS X. Alternative command for `rfkill`?

This question is an exact duplicate of this post from superuser.exchange.com. I believe this is a valid question for both of sites and hope I am not (if any) violating stackexchange policies. ...
3
votes
3answers
1k views

Can I list files ordered by date added to a folder from a command-line tool like ls?

I need to build a script that shows files in the same order as the default Downloads folder in the dock, ordered by Date Added, newest first. I can't seem to find the option in ls. Any other way to ...
0
votes
3answers
2k 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
2k 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?
0
votes
1answer
1k 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 ...
2
votes
0answers
106 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 ...
3
votes
0answers
5k 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 ...