Linux CLI - Viewing and Editing Files
Given a file
data.txt with 20 lines, what will be the output of head -n 3 data.txt | tail -n 2?data.txt with 20 lines, what will be the output of head -n 3 data.txt | tail -n 2?head -n 3 data.txttail -n 2 on the outputtail -n 2 takes the last 2 lines of the previous output, so lines 2 and 3.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions