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
256 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
581 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
487 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
728 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
84 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
338 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
96 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
262 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
282 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
513 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.
6
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
905 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
102 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
857 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
303 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
514 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
273 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 ...
4
votes
3answers
2k views

Installing command line GNU utils

I've recently started using MacBook Pro with OSX, after years of developing under Ubuntu. I often use GNU command line tools like make and watch. How do I install these on my Mac?
4
votes
1answer
3k views

Is there a more-accurate indicator of an app download's progress than what appears in Launchpad?

While downloading an application from the Mac App Store, you are presented with a progress indicator in Launchpad, like so: For a large install (like Xcode, as shown) this doesn't provide a ...
0
votes
2answers
344 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 ...
3
votes
2answers
2k views

Disk utility in command line

I'm looking for the CLI equivalent of "Check disk" and "repair disk" in Disk Utility. I think fsck is involved but I don't know with which options, and if it's the only program run.
3
votes
2answers
1k views

Package command line tools into an automator script or app?

I'd like to know if there's a way I could package compiled command line tools together as part of an automator script or an app. Let's say, for example, I want to use a command line tool called foo ...
1
vote
1answer
146 views

macbook - low power from the command line

I often (for example on the train) want to put my macbook into a state that will maximise the amount of time I have before the battery runs out - so far example I'll switch off the bluetooth, then ...
2
votes
2answers
134 views

Open app in current directory when another app with the same name exists, from command line

I have an app name foo.app I want to open from command line (using open). My folder structure is like this: ~ +---bar +--- foo.app +---baz +--- foo.app I want to open the app located in ...
4
votes
3answers
851 views

How do I delete a locked, invisible file in the Trash?

On an external disk (that contains a clone), the /.Trashes/501/Users/myusername/Desktop folder contains (within some subfolders) a locked invisible file that I cannot delete. The whole folder starting ...
2
votes
2answers
234 views

How to investigate fragmentation of one file?

I'd like to see if one of my file is "all over the place", ie fragmented in little pieces at different locations on my hard drive. I'm not looking for a software like iDefrag but rather a command ...
0
votes
1answer
485 views

Command line brightness (Lion) [duplicate]

Possible Duplicate: How can I dim the screen from Terminal? Is there a command I can execute to modify screen brightness? Interested to see if the min/max are hardware or software ...
7
votes
1answer
329 views

How can I log into the desktop environment as Root on a new mac running 10.6 or 10.7 without creating a user account?

Under Mac OS 10.5, you could boot a fresh-out-of-the-box Mac into single user mode, mount /, set the root password, and touch .AppleSetupDone - this would allow you to log into the desktop environment ...
3
votes
1answer
3k views

Is there a way to minimize open windows from the command line in OS X Lion?

Just wondering if there is a way to retrieve open windows and minimize them from the command line in Lion? I have an AppleScript that does this, but it kind of slow, so wanted to know if there was ...
1
vote
1answer
2k views

Foolproof way of extracting .pkg files

I know there are some paid GUI tools that let you do this, but I'm not interested in those. Currently, I'm doing this: gzcat Contents/Archive.pax.gz | pax -r However, there are some pkg files that ...
0
votes
1answer
214 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 ...
4
votes
1answer
550 views

How do I find the current Mission Control space number from the command line?

Is there any way to determine the number of the currently active Mission Control space/desktop in Mac OS X Lion from the command line?
2
votes
1answer
601 views

How can I kill or refresh Desktop Wallpaper with a Terminal command?

Is there a command for refreshing the Display Settings? Or, in specific, refreshing the Desktop Wallpaper?
2
votes
1answer
1k views

Open source iSightCapture?

Is there an open source program like iSightCapture?
4
votes
1answer
2k views

How can I add all users to Print Administrator group but not full administrator?

Gordon Davisson offered a solution to a "standalone user" in another question I'm facing the same issue in an office environment. Printer paused and System Administrator needs to be called to enter ...
6
votes
1answer
6k views

How to initiate VPN conection from command line?

I would like to save some mouse clicks and keystrokes by initiating VPN connection from command line. Is there tool for this in Mac OS X? Ideally, it should accept VPN connection name and password and ...
1
vote
2answers
585 views

How do you list items with and without labels from the terminal?

Is there a command that can tell the label status (labels as applied in the info menu in the finder cmd+i) of an item from the command-line in OS X? Essentially, I just want to list all the items with ...
5
votes
1answer
15k views

How do I remove a user via single user mode in 10.7?

I occasionally will setup a user's machine that has been in for repair beyond the simple re-install of the OS. For example: install a new hd, install the OS, create a user, install updates and then ...