> I try to use curl to get my internet IP addres with command 'torsocks > curl https://ipinfo.io/ip' As a side note, curl supports socks5 proxies, so you could create an alias, say turl: alias turl='curl --proxy socks5h://127.0.0.1:9050/' # in ~/.bashrc And then just use turl whenever you need to curl through tor.