Download a random string of 6 characters containing both upper and lower case letters and digits to the ~/tmp/random.txt file using the curl command.
curl -sL -o ~/tmp/random.txt http://www.random.org/strings/?num=1\&len=6\&digits=on\&upperalpha=on\&loweralpha=on