네트워크/리눅스
리눅스에서 PS1의 변수에 대한 모든 것
윤맨1
2020. 6. 16. 16:18
What does ps1 do? (PS1 변수는 무슨 역할을 하나요?)
PS1 stands for "Prompt String One" or "Prompt Statement One", the first prompt string (that you see at a command line). Yes, there is a PS2 and more! Please read this article and the Arch wiki and of course The Bash Reference Manual. PS1 The primary prompt string.
Where is ps1 located? (PS1 변수는 어디에 위치해 있나요?)
PS1 is a primary prompt variable which holds \u@\h \W\\$ special bash characters. This is the default structure of the bash prompt and is displayed every time a user logs in using a terminal. These default values are set in the /etc/bashrc file.