To change the command prompt in UNIX, one can use

2018

To change the command prompt in UNIX, one can use

Answer: C. ps1To change the command prompt in UNIX, you modify the PS1 environment variable. Options A, B, and D correspond to text searching, file listing, and directory…

  1. A.

    grep

  2. B.

    ls

  3. C.

    ps1

  4. D.

    pwd

Attempted by 797 students.

Show answer & explanation

Correct answer: C

To change the command prompt in UNIX, you modify the PS1 environment variable. Options A, B, and D correspond to text searching, file listing, and directory printing commands respectively. Only PS1 directly controls the shell prompt appearance.

Explore the full course: Dsssb Tgt Computer Science Paper 2

Loading lesson…