Tagged Questions
0
votes
1answer
51 views
Where should shell tools be installed?
Are there Apple guidelines for where user shell tools in Mountain Lion should be installed? Some (e.g. TeX, or Apple's Git) end up in /usr, and others (e.g. X11) seem to end up in /opt (sometimes with ...
3
votes
2answers
369 views
Editing System Preferences via Terminal
Am looking to edit system preferences settings via the command line but cannot for the life of me find the correct names of variables.
In Login Options under Users & Groups, I would like to be ...
1
vote
1answer
144 views
How to use a UNIX console app
I downloaded a port knocking script from
http://www.zeroflux.org/projects/knock
It downloaded a file knock, which is a Unix Executable File. When I double click on it, it runs the Terminal, where it ...
3
votes
3answers
6k views
How do I delete a BootCamp partition using Terminal's diskutil?
For some reason, the BootCamp Assistant app won't let me delete my BootCamp partition. How can I do so using Terminal and the diskutil terminal app?
0
votes
1answer
378 views
How can I have Qt Creator to recognize my environment variables?
I use Qt Creator as my main IDE for cross-platform C++ application development. In doing so I had set it up so that it depends on a set of environment variables that I define in .bashrc.
On Linux ...
1
vote
1answer
690 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 ...
2
votes
1answer
209 views
bash file recovery?
I think I messed up my bash file /bin/bash when trying to create my first script, it displays a message saying "process completed" and locks my terminal, if I switch to another shell e.g sh, then it's ...
9
votes
1answer
1k views
What is the difference between the sudo and su command?
What is the difference between the sudo and su command? Why does OS X handle these different than Linux?
2
votes
3answers
192 views
What tools exist to recover a file I clobbered using cpp in terminal?
I accidentally typed cpp Scriptname.py DestinationDirectory, intending to copy the Python script into the folder.
I realized afterward that I should have used cp, but now my Python script is ...
1
vote
3answers
3k views
How do I search all hidden files that are in hidden folders using Terminal?
I need to find some configs buried in some hidden folders and can't recall where they are to navigate to them directly Cmd+Shift+G.
I did a sudo find -name Foo* (slow), but none of the returned files ...
7
votes
4answers
2k views
Remotely SSH to IP address in home network
I've got a device at home I want to SSH to from work. The device has port 22 open locally and I have port 22 opened on my AirPort Extreme. However, on the AirPort Extreme it says the open 22 port only ...
1
vote
2answers
211 views
How can I get Unix (brew/xcode/vim) acting like Unix under Lion?
I "upgraded" from Snow Leopard with Homebrew and vim both chugging along happily, to Lion. Now vim hangs/segfaults, and when I invoke brew, it complains xcode is missing, and continues to do so after ...
3
votes
2answers
378 views
SSH Key Error, sudo works fine
When I try to ssh (using ssh user@server.com) into my server at home from either the local network or from outside, I get the following error:
But if I use sudo ssh user@server.com, it works with no ...
2
votes
2answers
200 views
Where do these Terminal commands come from?
I don't know any specific term for these Terminal commands, so i want to give an example:
defaults write com.apple.dock itunes-notifications -bool TRUE
With this command, you can enable an ...
4
votes
2answers
270 views
Is there a UNIX-style triple click to select path in Terminal.app?
In Red Hat, if there is a path somewhere on my terminal window and I triple click it, the whole path is selected. I can then easily copy it using middle-click or a regular copy-paste.
This doesn't ...
2
votes
4answers
303 views
Setting time format preference in unix (Mac-Terminal)
I'm learning to work in unix using Terminal on a Mac and I'd like to set the default listing for the timestamp to display in 12 hour time, using AM and PM, instead of 24 hour time (ie: 1:00 PM, not ...
5
votes
3answers
1k views
How can I manipulate several security settings from terminal?
I want to change these behaviors from terminal:
Auto-login
Showing password after screensaver and sleep mode
Go to sleep mode after x minutes
Enable screensaver after x minutes
1
vote
1answer
215 views
Map keyboard key to unix command
Simple I am looking for a way to map a keyboard key to a unix command. It could be as simple as literal as opening up terminal and pasting a required bit of text.
3
votes
1answer
2k views
Unknown terminal 'xterm-256color'
Keep getting a message in Terminal saying
tput: unknown terminal "xterm-256color"
This message typically appears when running homebrew, and while I can swear it's popped up on other places, I ...
4
votes
1answer
1k views
How can the 'mail' command be used?
I've had my first Mac for about five months now. Though, even when I was a full-on Windows user, I never did things through a command line; I was pretty much for the GUI all-the-way..
But now that I ...
1
vote
0answers
262 views
Why does my Terminal window close automatically?
I need to use my Terminal window on a MacBook Air but it closes about 10 seconds after I open it. Is there a setting or is it possible another program is causing it to close? If I type quickly I can ...
7
votes
9answers
589 views
Which command-line packages do you need? [closed]
I generally have one of Fink, MacPorts, Homebrew installed. Most often for a single, small, and trivial package. I've found that all my day-to-day software exists in OS X versions.
So, which non-OS X ...
1
vote
6answers
4k views
How to monitor file access for an OS X application?
I am looking for the OS X corespondent of FileMon, that was later included in ProcessMon.
BTW, it is essential to be able to filter by process.
0
votes
1answer
1k views
Git: command not found during Git installation (Mac OSX 10.6)
I am trying to install Git on my Mac (OSX 10.6) following the official Git tutorial.
I had no problem until I had to set my username and my email.
Every time I tried I got "-bash: git: command not ...