V
V
Victor Nasonov2019-07-02 12:31:11
bash
Victor Nasonov, 2019-07-02 12:31:11

What is the default command line prompt in centos 7?

It needs to be set for the user.
Now there is such export PS1="[\[email protected]\h \w]#"
but the folder is displayed as the entire path, but the last folder is needed, like for all users.
prompt string PS1 by default.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sash999, 2019-07-02
@kvonosan

export PS1="[\[email protected]\h \W]#"
Capital W.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question