To change the command prompt in UNIX, one can use
2018
To change the command prompt in UNIX, one can use
Answer: C. ps1 — 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…
- A.
grep
- B.
ls
- C.
ps1
- 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.
Loading lesson…