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)

5
votes
1answer
500 views

Can I play chess on my Mac from the command line?

If I were feeling insufficiently geekish on any particular day, and thus found the GUI Chess App to lack an appropriate amount of tech credibility, is there a way to play chess on my Mac from the ...
1
vote
3answers
659 views

Moving a folder with “sudo mv”, how to preserve ACLs?

I'm moving a whole folder from one volume to another (both HFS+), using sudo mv, and thought ACLs would be preserved. However at the end of transfer I see that they haven't been kept, and since mv ...
1
vote
1answer
375 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 ...
0
votes
2answers
470 views

adding a secondary group for user via CLI in Lion is not working

I need to assign a secondary group membership to a user on a client machine running 10.7.4. In CLI edit3:~ admin$ sudo su - edit3:etc root# dseditgroup -o edit -a userA -t user QC edit3:etc root# ...
6
votes
2answers
2k views

How can I kill a process using top on OS X?

On other Unixe,s I can use top and then hit K and type the process ID. How can I do that in OS X? I can type kill [the_pid] on its own at the command line and that works. However, I was wondering if ...
0
votes
1answer
202 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 ...
-2
votes
1answer
521 views

Running *ix Commandline tools in Macbook Air? VNC? Virtual-machine? Usable or too slow? [closed]

I haven't used OS X since an awful experience with its commandline tools and CD Xcode about 2009, that time getting rid of all Apple stuff but coming back after iPhone/iPad/FaceTime/iCloud/etc. Now I ...
3
votes
1answer
214 views

Does mac os x have any command tool like pidstat in linux?

It can tell me the current status of a process, for example, whether it is still running or has been terminated.
4
votes
4answers
2k views

Copy to network share using local disk cache in Mac OS X Lion

I'm using rsync in Mac OS X Lion to copy a backup directory from my local HD to a network mounted share (local LAN). My goal is to archive the local backup to the network drive, thereby freeing up ...
4
votes
0answers
158 views

“Open with” in Finder.app gives duplicate entries [duplicate]

Possible Duplicate: How to omit apps from external drives in “Open With” menu? in finder's open with menu are a lot of dups. I am running latest OX X and patches. I googled and found ...
2
votes
3answers
2k views

Can grep highlight matching text without hiding file content?

I frequently use grep's context command line options (-A, -B, and -C), but occasionally I want to view the whole file with matching expressions highlighted. To accomplish this currently I simply ...
6
votes
1answer
1k views

Completely clear all output from a Terminal window

I would like to clear all output from a Terminal window (including all historical output) to get it back to a clean state as if you had just opened a new Terminal window, or a new Terminal tab. I can ...
9
votes
4answers
9k views

How do I take a steathy picture with my iSight camera from the command line?

Is there a command line utility that allows me to take a picture from the built in camera? Something like screencapture allows for, well, screen captures. The reasoning for a command line tool is I ...
0
votes
0answers
325 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: ...
3
votes
3answers
12k views

Use curl to download images from website using wildcard?

Is there a way to use curl to download non-sequential images with a wildcard? I want to download all the panoramas I upload to my account at 360 Panorama to a local folder so I don't have to do this ...
1
vote
2answers
108 views

How can I do the equivalent of a Unix find / -print [under user permissions] under Mountain Lion?

I am doing, or trying to do, a 'find /' which I would like to recursively list every file the user has permission to access under the volume "Macintosh HD" and nothing else. I am presently filtering ...
2
votes
1answer
110 views

cpio's file on disk is not older; skipping — how to suppress this warning?

I create shadow copies of a directory containing 50K+ images (I don't remove them from the card until they're in three other places). Every time I add images to the master, I update the shadow copies ...
3
votes
3answers
2k views

.tar files on OS X Lion

How am I supposed to deal with .tar files with OS X Lion? I'm trying to install Ruby Version Manager, but Lion is throwing a fit about not being able to expand the tar file. This isn't the first time ...
2
votes
3answers
513 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
381 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
422 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
556 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
454 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
585 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
202 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
398 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
528 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
623 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
196 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
7k 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
293 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 ...
24
votes
5answers
27k 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
364 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
299 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
728 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
536 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
758 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
2k 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
87 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
4k 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
5k 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
378 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 ...