Categories
Linux

find – linux command cheat sheet

Find is a Linux command use for searching a file or files in a directory hierarchy. It is help full to search for a file or directory based on name, size, type and access/modified time etc and as well as can execute command on results.

Basic Syntax for Find command :

find (name/size/type/access or modified date) ..argument ..argument

Search for file ending .conf
find /etc/ -name *.conf

Search for directories ending with *conf
find /etc/ -type d -name *conf

Categories
Linux Tools

dig – Linux DNS Lookup utility cheat sheet

digDomain Information Groper is a light weight Linux utility for querying DNS records. It is widely used to diagnose DNS servers, troubleshoot DNS servers, purge DNS Cache using external DNS server and dozen of great features it provides.

Here i am sharing quick cheat sheet of dig – DNS Lookup utility that every System/Network administrator should have print out at their desk.

In our examples, 8.8.8.8 is a Google Public DNS Server that can be use in /etc/resolv.conf

Why to use Google Public DNS ?

If you have a DNS record with high ttl e.g 3600 seconds, your local DNS server may not purge the old record from the cache. So better you use Google public DNS server to resolve it most recent update record.