Hello
PORTx is the register of the physical pin you see on your PIC
TRISx is the register used for choosing if a PORTx pin should be an input or an output (1 for input & 0 for output)
Every PORTx pin has its corresponding TRISx bit. If you want PORTx bit 6 as an output, TRISx bit 6 should be 0.
I hope that helped