To change the command prompt in UNIX, one can use —
2018
To change the command prompt in UNIX, one can use —
- A.
grep
- B.
ls
- C.
ps1
- 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\$ "