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)

1
vote
3answers
341 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
353 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
12k 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
206 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
6k 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
255 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
272 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
2k 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
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 ...
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
425 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, ...
60
votes
16answers
49k 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
320 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 ...