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
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 ...
1
vote
1answer
486 views

using gcc, g++ outside of xcode on mac

I'd like to spend some time aside from the IDE for a bit and use command line gcc, g++ compilers. When i use my terminal, they however, can't be found. How can i install them? I honestly am ...
10
votes
4answers
2k views

Updating modifier key mappings through defaults command tool

I am trying to automate the inital setup of my macbook, that includes installing software and changing OS X configuration to my needs. I have tried to update the modifier keys with defaults, the ...
4
votes
1answer
6k views

Is it possible to view passwords through Terminal?

Does anyone know how to view passwords in Terminal? Maybe by accessing the Keychain data or something? I want to be able to view passwords in Terminal with just a series of commands.
0
votes
1answer
413 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 ...
1
vote
1answer
441 views

dd to ISO from disc drive makes unmountable / unburnable image?

I'm trying to dd from a disc in my DVD drive on my MacBook to an ISO, but the image always ends up as unmountable and unburnable. The disc is unmounted when I start the process. I've used dd many ...
6
votes
3answers
11k views

How to add user to a group on command line?

With Linux/Unix, I can use useradd -G developers vivek to add vivek to the developer group. How can I do the same thing with Mac OS X? Then, how do I check if vivek is in developers group?
19
votes
8answers
10k views

Can home and end keys be mapped when using Terminal?

The home and end keys on a MacBook Pro can be emulated with fn + left arrow or fn + right arrow. Or when certain settings are changed, with the Command (Apple) key instead of fn. None of these ...
43
votes
9answers
80k views

Why doesn't .bashrc run automatically?

I put some alias commands in my .bashrc file, so that they might be loaded everytime I open a new Terminal window. Yet this doesn't happen. I have to select run script: in the ...
1
vote
2answers
363 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 ...
1
vote
2answers
283 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 ...
4
votes
5answers
5k views

How do I get “wget” for Snow Leopard?

There's no wget command. How do I get it?
0
votes
2answers
590 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.
1
vote
3answers
2k 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 ...
7
votes
6answers
8k views

How to send an email from command line?

How to send an email from command line or script? I want to be able to run the script programmatically by passing the receiver and the message.
2
votes
3answers
1k views

How to manually trigger background image change?

I have set the wallpaper to change every hour and have enabled it to cycle them in a random order. Sometimes the background image changes to an image that was set just few rounds ago and I'd like to ...
26
votes
2answers
9k views

Linux' `ps f` (tree view) equivalent on OSX?

How can I get a tree view like the one below on OSX? vartec@some_server:~$ ps xf PID TTY STAT TIME COMMAND 11519 ? S 0:00 sshd: vartec@pts/0 11520 pts/0 Ss 0:00 \_ -bash ...
4
votes
3answers
9k views

Netcat -e on Mac OS X

I'm a newbie macuser coming from Debian, and I'm a big command line user. One one my preferred one is netcat (aka nc on mac). I especially loved the -e option which enabled to create a process that ...
3
votes
1answer
994 views

Connect to Server as guest from command line

I have a SAMBA share I mount on my Mac from time to time. I do this in Finder with Go > Connect to Server..., typing smb://192.168.1.1 into the Server Address field and pressing Connect. On the ...
3
votes
1answer
549 views

Why setting image as its own icon with sips result a blurred icon? Are there any alternatives?

I've successfully changed icons using the procedure described in an another question: Changing or setting a file or folder icon programmatically. Either my sips (or Finder) got broken afterwards or I ...
5
votes
2answers
8k views

How to start OS X applications from the command line with optional arguments?

I am looking for an easy way to start different GUI OS X applications from the command line and with different parameters. If possible I would like to add them to the system PATH in order to call ...
5
votes
1answer
16k views

How do I format a disk partition from the command line on OS X?

How do I format a disk partition from the command line on Mac OS X? In case someone wonders why: because for some people Disk Utility fails.
2
votes
4answers
3k views

How to correctly pipe output into “say” in terminal

I realized that the "say" command can be great when combined with another command/program because it can read you the output. I tried to pipe the output from "leave" to "say" by typing the following ...
5
votes
6answers
2k views

Why use the terminal in daily non-programming life

Disclaimer: I'm a Windows boy awaiting his first mac. I never bothered learning/using command-line interfaces. I've been looking at the Terminal Tips and Tricks topic and I don't see how any of those ...
1
vote
1answer
283 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 ...
1
vote
3answers
370 views

How to force a diff format for TextMate?

I have this alias: alias hgd='hg diff|mate' The problem is that for some reason the temporary file thus created will be a .txt, while I'd need it to have the diff syntax highlight. If I manually ...
2
votes
1answer
360 views

Is it possible to set a Custom quick look preview image in OS X?

Is there any way to set a custom quick look image in OS X? I'd like a command line tool or applescript to change or embed a custom preview for a file using a jpeg.
9
votes
2answers
14k views

How do I create a symbolic link to a directory with a space in it?

I was trying to create a symbolic link using the following command: ln -s "~/Foo Bar/" Foo ... but it didn't work (i.e. when I go into finder and try double clicking it, it says that it's pointing ...
2
votes
1answer
208 views

How can I run a shell command at login time without showing a Dock entry? [duplicate]

Possible Duplicate: How to run something automatically when the system boots or a use logs on? I need to automatically run a command when I log in but I don't want to add an item to the ...
19
votes
5answers
7k views

How can I change a file or folder icon using the Terminal

How can I change or set the icon for a file or folder, in the terminal, do I need to use a scripting language?
1
vote
1answer
258 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 ...
6
votes
1answer
6k views

What command combo at terminal will output a list of directories with human-readable sizes?

I'd like to open Terminal.app and enter a command like: my-macbook-pro:~ my-username$ ls -lh Instead of seeing the size of the folders in bytes that are in my current working directory, I'd like to ...
3
votes
3answers
280 views

How to make preview jump to a specific line on startup

I am using TexLipse for working with latex, producing pdfs as output. I have configured it to use preview as viewer using this command line: open -a "/Applications/Preview.app" %fullfile Where ...
0
votes
2answers
3k 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 ...
2
votes
3answers
518 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 ...
6
votes
4answers
2k views

How can I set Spotlight metadata to files?

I am looking for a command line utility (I need to use it in a script) that can set Spotlight metadata to files.
2
votes
4answers
3k views

How to run Wireshark in the background without the GUI?

I am trying to run Wireshark on Mac OS X in the background. I installed the command line utilities, and so I am able to start Wireshark and capture packets using the command line. The only thing I ...
8
votes
3answers
459 views

Drag & Drop vs mv - Any difference?

Is there a difference between bulk-moving files with Drag & Drop vs mv? Use case: Volume External_Drive_A has about 8000 files totalling 9GB. External_Drive_B has 74GB of free space. The ...
8
votes
2answers
1k views

Can user accounts be managed via the command line?

Is there any way to add, remove, or modify user accounts via the command line? I'm not talking about an account for a system process or daemon, I mean is there any way to add a user account, change, ...
69
votes
16answers
56k views

Is there a Mac OS X Terminal version of the “free” command in Linux systems?

On Linux, I often use the free command to see the current amount of free and used memory in the system. For example: $ free total used free shared buffers cached ...
2
votes
1answer
333 views

Remember desktop state after reboot

Does anyone know if desktop switching can be done programatically? Exposé activation and deactivation? I know of the screencapture command for the last part of my proposed solution. I would like to ...