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