Trying to change terminal prompt using PS1

tm flag

I'm trying to change my terminal appearance permanently by using something like: PS1="[\d \t \u@\h:\w ] $ " but when i do it, it displays [\d \t \u@\h:\w ] $ as my prompt can i have some help.

cc flag
Your command worked just fine in my bash shell. What shell are you using?
FedKad avatar
cn flag
You are probably not using bash.
ro flag

it's probably you are using sh as your shell
to check if your shell that current running:

$ echo $0


$ echo $SHELL

to change your default shell to bash

$ chsh -s /bin/bash

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.