All three commands correctly display the 51st line. 'head -n 51 filename | tail -1' extracts first 51 lines then takes the last one. 'head -51 filename | tail -1' is shorthand for the same. 'sed -n 51p filename' uses sed to print only line 51. Each approach works: head/tail piping or sed direct addressing.