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 129 students.

Show answer & explanation

Correct answer: C

In UNIX/Linux, the PS1 environment variable controls the command prompt appearance. Changing PS1 changes the prompt. Temporary change (current session): export PS1="\u@\h:\w\$ "

Explore the full course: Niacl Ao It Specialist