Footprinting is a method of gathering information and is a vital step in penetration testing. Information is critical in doing penetration testing, whois and host are good commands when they are executed.
To use whois, just type in your terminal :
whois example.com
To use host, just type in your terminal :
host example.com
The information will be directly displayed when the site exists.