nerdexam
GIAC

GSNA · Question #210

Which of the following commands can be used to convert all lowercase letters of a text file to uppercase?

The correct answer is B. tr. You can use the tr command to convert all lowercase letters of a text file to uppercase. The tr command is used to translate, squeeze, and/or delete characters from standard input, writing to standard output. If you want to change all lowercase letters to uppercase, you will…

Linux/Unix System Auditing

Question

Which of the following commands can be used to convert all lowercase letters of a text file to uppercase?

Options

  • Atac
  • Btr
  • Ccat
  • Dless

How the community answered

(18 responses)
  • A
    6% (1)
  • B
    72% (13)
  • C
    6% (1)
  • D
    17% (3)

Explanation

You can use the tr command to convert all lowercase letters of a text file to uppercase. The tr command is used to translate, squeeze, and/or delete characters from standard input, writing to standard output. If you want to change all lowercase letters to uppercase, you will use the tr [a-z] [A-Z] command. commands cannot translate the text from one form to another.

Topics

#tr command#Linux text processing#case conversion#command line

Community Discussion

No community discussion yet for this question.

Full GSNA Practice