Difference between revisions of "PS1"

From wikieduonline
Jump to navigation Jump to search
Line 1: Line 1:
 
* <code>[[ssh]] SERVER_NAME -t "[[export]] [[PS1]]=your_text; bash"</code>
 
* <code>[[ssh]] SERVER_NAME -t "[[export]] [[PS1]]=your_text; bash"</code>
  
Examples:
+
===Examples===
 
* <code>PS1='[\u@\h \W]\$ '</code>
 
* <code>PS1='[\u@\h \W]\$ '</code>
  

Revision as of 14:40, 20 August 2021

Examples

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


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

Related terms

See also

Advertising: