file.txtは50行からなるファイルです。このファイルのちょうど真ん中10行だけを表示するコマンドをすべて選択してください。
head -n 20 file.txt | tail -n 20
head -n 30 file.txt | tail -n 10
tail -n 10 file.txt | head -n 40
tail -n 20 file.txt | head -n 20
tail -n 30 file.txt | head -n 10