Copy URL

How do I make it so I can copy the URL of a file, and then just paste it somewhere?

Thanks.