Description: I followed the steps from the lecture to modify the command prompt in Cloud Playground (Ubuntu 20.04) but encountered an issue. The prompt does not change to the expected working directory base name when setting the PS1
variable as described:
PS1=“[\W]”
Despite applying the command, the prompt remains unchanged. Please see the attached screenshot for reference.
Questions: Additionally, could you clarify when to use the export
command? For example, should I use export PS1="[\W]"
instead of just PS1="[\W]"
?