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
3answers
500 views

Editing iPhoto-specific metadata

Perpetua:2011-01-16 ashley$ mdls IMAG0107.jpg ... kMDItemComment = "Cat with is tongue out." So, here's my question. xattr can be used to modify some ...
3
votes
3answers
6k views

Under 10.8 which file stores the environment variables?

This has been this way since 10.6. There is no .bashrc file in the home dictionary but the environment variable PATH indeed exists as the result of this command shows: $ echo $PATH ...
1
vote
2answers
366 views

Terminal in full screen mode: how do I recover from “cat /dev/random”

What are the ways I can regain control over my computer when I have terminal in full screen mode and type: cat /dev/random
0
votes
1answer
387 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 ...
5
votes
1answer
2k views

Why is a command line change to ~/Library/Preferences/com.apple.LaunchServices.plist not effective immediately?

When the Info window of Finder is used to associate files of a particular type with an application: the preference is effective immediately. When Terminal is used to make a comparable addition ...
2
votes
2answers
520 views

Exclude files from “central metadata store”

I'm fairly familiar with the mdfind utility. I find it's very useful when I can't find a file or when I need to find a file with certain contents. The problem is that I need to exclude some files from ...
0
votes
3answers
418 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" )" ...
1
vote
3answers
112 views

At the command line, how can I 'arrow along' faster using words instead of chr's

I am at the command line and I have . /this/set/of/directory/this_command "parm1", "parm2", "parm3" When I 'up-arrow' to recall previous lines, how can I move along the line from "word to word". ...
1
vote
1answer
566 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
2answers
200 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 ...
7
votes
2answers
1k views

AirDrop: How to access AirDrop from command line?

I was looking for an option to use Airdrop to sync a set of directories between two computers. I want to achieve this wirelessly(hence chose Airdrop w/o having the computers connect on a network or ...
5
votes
1answer
369 views

How can I open a file in its default application from the command line in OS X?

How can I open a file in its default application from the command line? For example if I have a file foo.doc, can I type command ./foo.doc into the CLI and have that file open in Word? Note: on my ...
8
votes
1answer
2k views

Why does it appear that I apparently “do not have access to Command Line Tools” in ML?

I just upgraded to Mountain Lion, and now gcc, make, g++, etc. are not found when trying to launch them in Terminal. So I went to Xcode Preferences, Downloads, and clicked "Install" next to Command ...
3
votes
2answers
514 views

How do I set the creation time of a file?

I have a script that converts a file to another format, and I want the resulting file to have the same timestamps as the original, including the creation time (as shown by ls -lU). I can use touch to ...
5
votes
2answers
8k views

Can't install Xcode Command Line Tools on Mountain Lion

I try to install the most recent (july 25) version of Command Line Tools (xcode44cltools_10_76938107a.dm), downloaded from https://developer.apple.com/downloads/, but are stopped with the error ...
4
votes
3answers
600 views

How to stream radio from the command line?

There is an iMac in our lab at university, running Mac OS X 10.7 Lion. It is never used, so we have taken to using it to play music, as we can SSH to it, and it does not require any permissions to ...
1
vote
2answers
189 views

Why does the Dock executable not yield any useful strings, unlike other OS X apps?

When I run the strings command on the executable file in most OS X apps (•.app/Contents/MacOS/•), I get a list of routine names, possible hidden preferences, etc. When I run the command on the Dock ...
7
votes
2answers
6k views

How does 'stuck' (in results of 'top') relate to 'not responding' (in Activity Monitor), 'spin' or 'hang'?

In results of top commands, I sometimes see stuck. Apple's top(1) OS X Manual Page does not explain this use of the word. How, if it all, does stuck relate to the following? not responding – ...
2
votes
3answers
290 views

How to determine out what Wi-Fi channel is used from the command line?

If I hold Alt/Option and click the Airport icon at the top, I get a bunch of extra data about the access point I'm connected to. Most interestingly for me right now is the Wi-Fi channel. ifconfig ...
23
votes
5answers
26k views

How to always show menubar with fullscreen apps?

Does anyone know if it is possible to keep the menubar in Mac OS Lion visible for fullscreen apps instead of hidden until hovered over with a mouse or trackpad? I imagine there's some Terminal ...
1
vote
2answers
362 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 ...
5
votes
1answer
272 views

How to pipe output of 'say' to another command

'say' has both -o and -n arguments for various ways to direct the output, but I don't see any way to simply pipe the output to another command (say, sox). Is this a limitation of say, or is there a ...
0
votes
2answers
640 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 ...
2
votes
1answer
507 views

Why doesn't the screen command source my .profile?

When I start a new screen, the aliases that I have set in my ~/.profile do not seem to be sourced. Does anyone know where I can change this or which file is actually read when starting a new screen?
0
votes
1answer
740 views

How to create OS X Server Admin firewall rules using ip address groups by command line?

The (Lion) Server Admin.app has a nice ability to apply firewall rules to ip address groups without having to edit ipfw config files. But having to enter large and long lists of IP addresses using ...
2
votes
3answers
1k views

Getting a list of currently running processes

I'd like to get a list of all the applications currently running on my machine using the command line. It should be similar to what you get when you open up Activity Monitor and choose to save the ...
1
vote
3answers
1k views

Matlab on the command line error in Lion

I constantly get this warning in Matlab, which I run on the command line: This process is attempting to exclude an item from Time Machine by path without administrator privileges. This is not ...
1
vote
1answer
1k views

How do I get a Unix Executable File to run from anywhere, like Java or Git?

I've just created my first Command Line Tool in Xcode. What do I have to do, or where do I have to put the final output file, so that I can run it from anywhere from within terminal, without having ...
3
votes
1answer
86 views

What's the “@”mark at the file description?

I installed princexml for Mac. With ls -alF, I have -rwxr-xr-x@ 1 prosseek admin 14190120 Jun 8 16:11 prince*. What's the meaning of @ in -rwxr-xr-x@? And when I tried to execute the binary, I got ...
4
votes
4answers
3k views

Creating a virtual serial port

I'm trying to create a pair of virtual serial ports on my mac. This is fairly easy to do with many shareware programs on a PC. I figured there would be some uber-powerful shell command to do this in ...
2
votes
4answers
4k views

How to find all files that are larger than 1GB on the Mac HD?

It seems that either one of these commands can be used: sudo find / -size +1G sudo find / -type f -size +1G But when it gets to /Volumes, it actually look at all the back up files by Time Machine ...
4
votes
1answer
353 views

Why does my Terminal command line screw up like this? (bash's fault?)

When I use the command line history ( CtrlR , CtrlP ) The command line screws up like this: The cursor is supposedly located at the end of the line ( just pressed CtrlE ) If I press enter, just ...
1
vote
1answer
99 views

Installing gcc without admin?

Is there a place to install command line programs on OSX without an admin password? I've tried /bin and /usr/bin, and I have permission for neither. Like a ~/Applications, but for the command line.
1
vote
1answer
268 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 ...
5
votes
3answers
286 views

Detect single-user mode from the command line

Is there a way to detect single-user mode in OSX (Lion, specifically) from the command line? I've tried who -r, which returns 3 in either standard or single-user mode. I've also tried nvram ...
1
vote
1answer
545 views

How do I make a shortcut command in terminal?

I want to have ll as a shortcut for ls -ll. How can I add it to my Termianl application? I use iTerm as my primary Terminal application. I wish there was a single line command solution for it.
7
votes
2answers
2k views

What is the difference between .bash_profile and .bashrc?

To make an alias for the Terminal in OS X, you can either put the aliases in .bash_profile or .bashrc. What is the difference between the two and why would I choose to put aliases in one and not the ...
1
vote
1answer
912 views

Darwin/Linux/Unix command line email client that supports iCloud?

I need to access my iCloud email from a command line. Is there a command line client for Mac OS X (and/or Linux and/or Unix) that can connect to Apple's (I assume it is IMAP) servers?
1
vote
1answer
105 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
1answer
878 views

Ejecting USB drive via AppleScript does not make drive power down

On startup, I eject my external USB disks with the following AppleScript: try do shell script "diskutil eject \"/Volumes/USB Backup\"" end try This works as expected: the drive powers down. ...
4
votes
2answers
3k views

How to change tap to click using “defaults write” from command line?

I want to change the trackpad tap-to-click property from the command line. Graphically, I can do it by clicking System Preferences -> Trackpad -> Tap to Click. How can I do it from the command line? ...
1
vote
1answer
313 views

Switching terminal styles in iTerm 2

Recently I've been trying to become more efficient at the command line, and stumbled upon iTerm 2 a couple days ago. One feature of iTerm 2 is that windows can appear from the top of the screen, so ...
3
votes
1answer
530 views

Printing the current date/time with sub-second precision

GNU date(1) understands the %N format spec, which outputs nanoseconds, so: $ date +%H:%m:%S.%N outputs 19:10:03.725196000 BSD date doesn't understand %N. How can I print the current time with ...
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 ...
0
votes
1answer
2k 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 ...
1
vote
2answers
78 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 ...
5
votes
1answer
4k views

How to control AirPort wireless radio from the command line?

I want to know how to control (specifically turn off) the networking (specifically AirPort - I want to turn off the radio) from the command line (specifically from bash in Terminal.app, being run by ...
4
votes
1answer
275 views

How do I set an icon for a directory via the CLI? [duplicate]

Possible Duplicate: Changing a file or folder icon using the Terminal This is a continuation of this thread from Super User. The question is how to set an icon on a directory. At first I ...
3
votes
1answer
3k views

Command Line Tools fail to install OSX Lion 10.7.3 Xcode 4.3

I'm trying to install the command line tools to get gcc, make, and other goodies after a Lion upgrade. I went to preferences/Downloads in XCode and attempted to install the command line tools. At the ...
5
votes
3answers
6k views

Use MacVim as standard Terminal?

I used to love the terminal.app for many reasons. I especially liked the way I could navigate to a file and edit using vim it all in one app, without having to leave the keyboard. But, since the ...