What code is being returned or where is a URL/domain redirecting you to? Curl makes this easy and simple:
curl -I yourdomain.com
linux, http, headers, bash, curl, seowhat, url, domain, redirecting, yourdomain,