Linux CLI - Viewing and Editing Files
You wrote a script to read a file using
head -5 file.txt but it always shows the whole file. What is the likely error?head -5 file.txt but it always shows the whole file. What is the likely error?head requires dash before number, e.g., -5, otherwise it ignores argument.head treats '5' as filename, so shows whole file.txt content.head 5 file.txt without the dash causes the issue. -> Option B15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions