1
vote
2answers
124 views

How to directly query authoritative DNS nameserver from command line, bypassing cached servers? [closed]

How can I directly query authoritative DNS nameserver from Linux and Mac OS X command line, bypassing cached servers? This is helpful when wanting to immediately verify newly-created DNS host names ...
2
votes
1answer
54 views

How to Add color support to watch command

as the title says, I want to see colors in my watch command. ex: # enable colors when running javascript unittests with watch watch mocha # enable colors when doing `ls` watch ls -aG
1
vote
2answers
236 views

Command line - query account type (local, network managed, mobile)

How can I query account type information. Things like who and users don't show this. Also tried things like dscacheutil -q user I'd like to know if a users account is a mobile account and I am doing ...
0
votes
1answer
2k views

OS X 10.8: Symlinking ~/Sites folder? [closed]

In Mountain Lion personal web hosting via Apache and your ~/Sites folder has been removed (at least without some hacking). I've read an article explaining how to re-enable it, but I can see that ...
0
votes
1answer
125 views

Issue with PHP and osx 10.7 - runs via command line but not in browser

I recently removed MAMP as I wanted to have more control over my machine and wanted to make use of PHP5.4 I installed using the script located here I cannot now not even get my default PHP that is ...
1
vote
1answer
392 views

How to change php binary location in OSX command line

I'm trying to update where the command line gets the location of the php binary: webserver: /usr/bin cli: /opt/local/bin/php Where can I edit so when I do 'which php' it shows me /usr/bin/php
0
votes
1answer
147 views

How can I run terminal commands at startup on a Mac OSX server?

For example, when the server boots I need to start Tomcat, and I need to start an Android emulator, and then issue some commands to it. These are on the path already. I'm familiar with Linux and ...
3
votes
4answers
212 views

What is the canonical /portable means of determining ONLY the ip of an interface

I'm writing some setup scripts/documentation and I want to dynamically set the listen ip for a service, given that I know that a particular network interface will be on a particular network. There are ...
1
vote
1answer
221 views

mysql functions php cli

I'm trying to run Symfony on my new Macbook Pro but I have no luck getting it to work with the command line scripts. With every symfony task related to a database connection the following message ...
5
votes
3answers
4k views

How does one escape the “ ` ” (accent grave/backtick) in a path?

I tend to prefix oft-used files and folders with the "accent grave" character (non-shift tilde, the back-tick, or plain-old accent, whathaveyou..), as it is easy to get at, and let's me sort things ...
3
votes
3answers
6k views

Why is “chroot” never used on Mac OS X?

I've been using Macs for 25 years, and "UNIX" since OS X 10.0.. but I've never really thought much about chroot, nor have I ever really needed or wanted to... It's a simple question, but... under ...
1
vote
1answer
237 views

mac OS X version 10.6.5 network connection troubleshooting/solution?

Im connected to a small office network where where everything works fine. however once in a while or on a random occasion usually after the computer has been left on or on sleep all night there are ...
1
vote
1answer
156 views

Remotely creating email accounts?

I'm the admin for a smaller company (with about 40 clients, running mac OS 10.4-10.6), and we are currently in the process of changing our email-setup from one hosted POP3-solution to an IMAP-based ...
9
votes
2answers
858 views

What does the “@” sign mean in ls -l output?

I have this output on MacOSX: $ ls -l total 40 -rwxr-xr-x@ 1 levente staff 52 30 Sep 15:38 pl -rwxr-xr-x 1 levente staff 675 14 Feb 17:07 plplay -rwxr-xr-x@ 1 levente staff 662 26 Jan 14:13 ...
4
votes
3answers
8k views

Create a Guest Virtual Machine from command line in VMWare ESXi/vSphere 4?

Finding I have access to a Windows machine less and less these days and am a bit frustrated by the lack of a Virtual Infrastructure Client for Mac or Linux. I have SSH setup on my ESXi hosts and have ...
0
votes
2answers
138 views

Unix/Linux/MacOSX online training

I am a web dev seeking deep knowledge of the Unix-style command line. Please if anyone has a recommendation on any high quality courses avail. over the web respond to this thread.
0
votes
1answer
228 views

OSX: Undeletable files

So via what I suspect is a cron'd rsync gone awry, I noticed that I have ~25000 variants of .DS_Store in a directory that's on an external disk, they're named "..DS_Store.FOO" where FOO varies. The ...
3
votes
1answer
4k views

Add a new user on OSX Snow Leapard Server from the command line?

I have a Mac OSX server running Snow Leapord. I only have ssh access, and I have root access. I want to add a new user. I'm a long time unix user and was a bit suprised to see adduser and useradd not ...
1
vote
1answer
3k views

Changing Ownership of a folder using terminal

How do i change the ownership of folders on a secondary hard drive using the chown to make the folder owner be administrator When i use this command chown -R username foldername I get an error ...
1
vote
2answers
389 views

How can I replace all instances of a specified string in a text file with another string?

I have a file a.txt. I would like to replace all instances of "1.6" with "1.5" in that file, overwriting the original file.
2
votes
1answer
369 views

versioning from the GUI : hook to trigger script on file or folder on replace? Unix(mac)/Linux OS

Is there a way to automatically backup of files and folders triggered by a file or folder replace action. I'm looking for somthing like git-hooks or a listener of some sort that can run a ...
4
votes
9answers
2k views

Terminal window in Mac OS X

Is it possible to to create a shortcut to open a terminal window to a specific directory? I'm using gcc a lot to build small C programs but it is annoying to have to navigate to the directory where my ...
21
votes
4answers
17k views

How to sort ps output by process start time?

Is there a way to sort ps output by process start time, so newest are either at the top or bottom ? On Linux ? On SysV5 ? On Mac ?
9
votes
4answers
2k views

SCP filename tab completion

I use SCP regularly to move files between servers and I've heard rumoured that you can use tab-completion on the remote server if you're using public keys, but so far I have had no luck. What I'm ...
0
votes
1answer
230 views

Virtual COM for Mac OS

IS there a way to create virtual COM ports in Mac OS and connect them to eachother?
6
votes
4answers
3k views

How do I flush the DNS cache on Win, Mac, Linux computers?

How do I flush the DNS cache on Win, Mac, and Linux computers?
1
vote
3answers
728 views

What's the shortest command to find a volume's BSD device name ( /dev/disk*s* )?

What's the easiest way to find out that, for example, /Volumes/Foo lives in /dev/disk0s2 ? EDIT: mount is probably a more semantically satisfying answer, but it doesn't get much shorter than df
1
vote
4answers
2k views

How do forward/reverse lookups differ between “nslookup,” “dig,” and “host”?

How are "nslookup," "dig," and "host" different (in terms of looking up hostnames or IP addresses)? Which authorities are queried? I'm trying to figure out when I should use one over the others.
9
votes
4answers
28k views

Getting CPU information from command line in Mac OS X [server]

Sometimes I need to gather information about the client's server prior to making real work there, i.e. getting info on CPU type and activity. On Linux there is mpstat and /proc/cpuinfo, both of them ...