Unix/Usefull Commands

just a quick dump of some usefull unix commands

List the top ten largest files
du -sk * | sort -rn | head -10

nslookup
nslookup will return infomation about domain names.

nslookup

nslookup -d {server}

Host
host will return infomation about domain names.

host domain name

-t querytype Allows you to specify a particular querytype of information to be looked up. The arguments are defined in the man page for named(8). Currently-supported types include: ``a'', ``ns, ``md, ``mf, ``cname, ``soa, ``mb, ``mg'', ``mr, ``null, ``wks, ``ptr, ``hinfo, ``minfo, ``mx, ``uinfo, ``uid, ``gid, ``unspec''. Additional- ly, the wildcard, which may be written as either ``any or                ``*, can be used to specify any (all) of the above types. Types must be given in lower case. Note that the default is                to look first for ``a, and then ``mx, except that if the verbose option is turned on, the default is only ``a''. The ``-t'' option is particularly useful for filtering informa- tion returned by host; see the explanation of the ``-l'' op- tion, below, for more information.

dig
Dig gets infomations from DNS

dig @{servers NS} {server} [axfr|MX|NS|all]

axfr is a full zone tranfeer

all will retreave every thing it can