LPIC-1 Linux Administrator

Text Filters and Regular Expressions

12 free questions here, all 60 in the app

Easy 20 8 of them here Medium 20 2 of them here Hard 20 2 of them here

Easy

8 of 20 questions

Text filters

  1. Which command prints the first ten lines of a file when given no further options?
  2. Which command continuously follows the lines newly appended to /var/log/syslog?
  3. Which command prints a file with line numbers in front of each line?
  4. Which command shows the contents of a file byte by byte, for example in octal or hexadecimal?
  5. Which command shows the contents of report.txt.gz without decompressing the file?
  6. Which command prints only the first field of /etc/passwd, that is, the user names?
  7. What does paste names.txt numbers.txt do?
  8. Which option makes sort order numbers by their value rather than character by character?

Practise all 20 Easy questions in the app →

Medium

2 of 20 questions

Text filters

  1. Which command prints a file from line 5 to the end?
  2. Which pipeline prints exactly the tenth line of file.txt?

Practise all 20 Medium questions in the app →

Hard

2 of 20 questions

Text filters

  1. logrotate renames access.log at night and creates a new, empty file. Why is tail -F better than tail -f for following it?
  2. A file contains a, a tab and b. How does the tab appear in the output of od -c?

Practise all 20 Hard questions in the app →

Certifications & exams

Which exam comes next?

You can already practise for 51 exams, and 16 are up for a vote. See all certifications with their official information, cast your vote or suggest your exam.

See all certifications