1
vote
0answers
40 views

Terminal wraps at 80 chars even if window is wider

Problem description If I increase the width of a Terminal version 2.3 (309) window, and then use less (or some command invoking less, like man) in that window, I often get garbled output, since the ...
1
vote
1answer
323 views

How to patch a file that resides in /Applications (patch can't find file to patch at input line)?

I am trying to patch 5 files within an Mac application bundle using the Terminal patch command. The files to be patch are specified using an absolute file path (the file name and path start with a ...
6
votes
2answers
8k views

how to reinstall xcode command-line tools?

I had serious problems from two versions of Xcode on the same machine. I removed all Xcode app instances & many other non-System 'xcode'-related files, then reinstalled the app (4.6.2), fixing my ...
3
votes
1answer
188 views

Within Terminal, `date` command outputs a curious prefix where it should'n

I am using a Mac Mini running Lion (10.7.5) and zsh 4.3.12 (i386-apple-darwin11.0.1) with oh-my-zsh installed. In the Terminal.app I retrieve the UNIX timestamp using the following command date +%s ...
10
votes
2answers
817 views

why does OSX add extra '._<filename>' when I tar a directory?

I'd just like to know why if I "tar -czf" a file/directory, osx adds a: ._ for each file? I see these when I untar in linux. Or when I work with the uncompressed project in eclipse as it doesn't ...
3
votes
1answer
438 views

Why doesn't tar recognize .iso files, even though the documentation says it should?

man tar says that OS X's tar implementation should be able to extract .iso files. tar creates and manipulates streaming archive files. This implementation can extract from tar, pax, cpio, zip, ...
2
votes
3answers
20k views

How to run .exe files on Mac without virtual machine?

I do have one software(.exe) file which I need to run on my macbook pro. For that I need cross platform application just like wine in Ubuntu. Can anyone suggest me the application?
1
vote
2answers
1k views

Display dialog from command line (like xmessage does)

Background I'd like to be able to display a notification window in OS X from within a script. The script will be running in background, so the notification should not go to the terminal but instead ...
0
votes
2answers
405 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# ...
3
votes
1answer
149 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.
5
votes
1answer
846 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 ...
3
votes
3answers
366 views

Dia command line not working

I've got a problem with using Dia from the command line on OSX 10.7.4. I downloaded and installed the OS X dmg from http://dia-installer.de/download/macosx.html I've been using it to create graphics ...
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 ...
0
votes
0answers
1k 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 ...
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 ...
14
votes
4answers
4k views

How do I speed up new Terminal tab loading time?

How can i speed up the terminal startup in Lion? I'm not referring to the startup of the Terminal application, but to the startup terminal windows, like when i open a new tab. I don't have anything ...
0
votes
1answer
465 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 ...
3
votes
1answer
2k 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 ...
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 ...
4
votes
1answer
193 views

Command line utility to create screenshot

Is there some command line utility to create a screenshot of the my screen and store it as png? (Preferably one in the system, without need to install anything new)
4
votes
1answer
519 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?
3
votes
4answers
2k views

Using locate.updatedb doesn't work in Lion

A week ago I upgraded to Lion from Snow Leopard. I want to use the locate command, but the locate database has not been built yet. So I tried running sudo launchctl -w ...
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 ...
7
votes
1answer
324 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 ...
4
votes
1answer
14k 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 ...
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 ...
7
votes
4answers
1k views

What's the best way to install command line utilities such as GIT?

I'm a Windows/Linux guy that just got my Macbook Air. I do web dev, and am currently trying to setup this machine for some on-the-go development. After some research attempts, I'm wondering: what's ...
21
votes
5answers
23k 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 ...