Saturday, August 13, 2011

Find large files in a linux file system

Use this command to search from the root of the file system for files larger then 100M.

find / -type f -size +100000k -exec ls -lSh {} \;

Of course you can edit the size and location to be searched easily.

Wednesday, May 4, 2011

Use net.exe to add account to local groups

Use this for Login scripts or what have you to add AD groups or users to local user groups.

net.exe localgroup localgroupname "domain\groupname-personname" /add

Saturday, March 12, 2011

Using NSLOOKUP to find IP outside of your network

1. From a command prompt type nslookup and hit enter
2. type server 8.8.8.8 hit enter. (This is a google dns server but its easy to remember)
3. now type the dns name you wanted to look up.

That is it!