Can't get the tx with gettransaction or getrawtransaction methods I am running bitcoin-d (probably downloading the prev blocks) in a shell.
In another shell i am trying to get the information of a transaction (0627052b6f28912f2703066a912ea577f2ce4da4caa5a5fbd8a57286c345c2f2) with bitcoin-cli. I can see that tx on blockchain.info but when i tried it with gettransaction and getrawtransaction it didn't work out. Does anyone know why is that?
screenshot below.
gettransaction is a wallet RPC. It only works for transactions your wallet knows about. Presumably this is not the case for a transaction from 2013.

getrawtransaction is a node RPC. It works for all transactions, but needs help to find them. One possibility is to enable the transaction index (put txindex=1 in bitcoin.conf, or -txindex on the bitcoind command line). Another option is specifying which block the transaction is in.