To change the command prompt in UNIX, one can use

2018

To change the command prompt in UNIX, one can use

  1. A.

    grep

  2. B.

    ls

  3. C.

    ps1

  4. D.

    pwd

Attempted by 322 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: Up Lt Grade Assistant Teacher 2025