Short links and http-to-https redirects are easy to expand without opening a browser.
curl -Ls -o /dev/null --max-redirs 5 -w '%{url_effective} (%{num_redirects} hops)\n' http://example.com/
-L follows Location headers, and without it curl stops at the first 3xx. %{url_effective} prints the URL of the last request and %{num_redirects} the number of redirects followed. --max-redirs 5 stops redirect loops, since the default limit is 50. By default curl only sends credentials to the first host, and --location-trusted changes that, which I would not use on unknown sites. For a plain check of one hop, drop -L and read the Location header from curl -I instead.
Further reading: curl manual