viagra
phentermine

Posts Tagged ‘find’

Finding the DHCP Servers on a Subnet

Friday, February 22nd, 2008

This is useful if you believe there is a rogue DHCP Server causing problems for your clients.

The dhcploc command lets you see a computer’s DHCP traffic for a broadcast domain. Simply pass in the IP address of the machine from which you are running the command:

> dhcploc 192.168.32.24

(more…)

Finding a Computer’s Active Directory Site

Thursday, February 14th, 2008

Using a command-line interface

In the following command, replace <HostName> with the name of the host whose site you want to find.

> nltest /server:<HostName> /DsGetSite

(more…)

Finding a User’s UID and GID

Friday, February 1st, 2008

If you want to know a quick way to check the UIDs of users and see what groups they belong to, ue the id command:

$ id carla
uid=1000(carla) gid=1000(carla) groups=1000(carla),20(dialout),24(cdrom),25(floppy),
29(audio),30(dip),44(video), 105(windows),432(usb),1001(cdrecording)

id has a few options:

-u Show the UID only.

-g Show the GID only.

-gn Show the user’s primary group name, instead of the GID.