Difference between revisions of "PS1"

From wikieduonline
Jump to navigation Jump to search
Line 6: Line 6:
  
 
Examples:
 
Examples:
PS1='[\u@\h \W]\$ '
+
* <code>PS1='[\u@\h \W]\$ '</code>
  
 
* <code>export [[PS1]]='[\u@\h $[[AWS_PROFILE]]]\$ '</code>
 
* <code>export [[PS1]]='[\u@\h $[[AWS_PROFILE]]]\$ '</code>

Revision as of 06:18, 10 August 2021

This article is a Draft. Help us to complete it.


ssh SERVER_NAME -t "export PS1=your_text; bash" 


Examples:

  • PS1='[\u@\h \W]\$ '


echo $PS1
${debian_chroot:+($debian_chroot)}\u@\h:\w\$

Related terms

See also

Advertising: