Courseiva
Shells, Scripting and Data ManagementmediumMultiple SelectObjective-mapped

LPIC-1 Shells, Scripting and Data Management Practice Question

Which THREE of the following commands can be used to transform delimited text (e.g., CSV) by selecting specific fields or columns?

⚠ Common exam trap

It's easy for candidates to confuse `cut` with `tr` because both manipulate text, but `tr` operates on characters, not fields, making it unsuitable for column selection.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

cut

The `cut` command is specifically designed to extract sections from each line of input, making it ideal for selecting fields from delimited text like CSV. By using the `-d` option to specify a delimiter (e.g., `-d','`) and the `-f` option to choose fields (e.g., `-f1,3`), `cut` can efficiently extract columns without additional processing.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • cut

    Why this is correct

    Selects columns by delimiter.

  • tr

    Why it's wrong here

    Translates characters, not fields.

  • awk

    Why this is correct

    Parses and manipulates fields.

  • cat

    Why it's wrong here

    Just outputs the file.

  • sed

    Why this is correct

    Can extract and transform fields using patterns.

About these practice questions

Courseiva writes every LPIC-1 question from scratch — 527 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This LPIC-1 practice question is part of Courseiva's free LPI certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the LPIC-1 exam.